Policy CMP0077 is not set

This commit is contained in:
mutouyun 2020-09-06 21:46:30 +08:00
parent e8b339d25b
commit 3a175529d6
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
option( option(
gtest_force_shared_crt gtest_force_shared_crt
"Use shared (DLL) run-time lib even when Google Test is built as static lib." "Use shared (DLL) run-time lib even when Google Test is built as static lib."
OFF) ON)
option(gtest_build_tests "Build all of gtest's own tests." OFF) option(gtest_build_tests "Build all of gtest's own tests." OFF)

View File

@ -11,7 +11,7 @@ include_directories(${CMAKE_SOURCE_DIR}/include)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(gtest_force_shared_crt 1) set(gtest_force_shared_crt ON)
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(3rdparty/gtest) add_subdirectory(3rdparty/gtest)