diff --git a/external/gtest.cmake b/external/gtest.cmake index ccd9ac034a..d130442dc4 100644 --- a/external/gtest.cmake +++ b/external/gtest.cmake @@ -55,12 +55,12 @@ set(BUILD_GMOCK OFF CACHE BOOL "prevents building gmock" FORCE) add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR}) if(MSVC) - set(gtest_LIBRARIES ${REPOSITORY_DIR}/build/ThirdParty/lib/$<$:Release>$<$:Debug>/${CMAKE_STATIC_LIBRARY_PREFIX}gtest$<$:d>${CMAKE_STATIC_LIBRARY_SUFFIX}) + set(gtest_LIBRARIES ${REPOSITORY_DIR}/build/ThirdParty/lib/$<$:Release>$<$:Debug>/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}) else() if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") set(DEBUG_POSTFIX d) endif() - set(gtest_LIBRARIES ${REPOSITORY_DIR}/build/ThirdParty/lib/${CMAKE_STATIC_LIBRARY_PREFIX}gtest$<$:d>${CMAKE_STATIC_LIBRARY_SUFFIX}) + set(gtest_LIBRARIES ${REPOSITORY_DIR}/build/ThirdParty/lib/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}) endif() FILE(APPEND "${EXPORT_FILE_NAME}" "gtest_INCLUDE_DIRS@@@${googletest_SOURCE_DIR}/googletest/include\n") FILE(APPEND "${EXPORT_FILE_NAME}" "gtest_LIBRARIES@@@${gtest_LIBRARIES}\n")