From 3a175529d657a7ebcd1c9301db16d336c44fc66e Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 6 Sep 2020 21:46:30 +0800 Subject: [PATCH] Policy CMP0077 is not set --- 3rdparty/gtest/CMakeLists.txt | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/gtest/CMakeLists.txt b/3rdparty/gtest/CMakeLists.txt index db29294..77f0b58 100644 --- a/3rdparty/gtest/CMakeLists.txt +++ b/3rdparty/gtest/CMakeLists.txt @@ -13,7 +13,7 @@ option( gtest_force_shared_crt "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) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd5c027..373b302 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ include_directories(${CMAKE_SOURCE_DIR}/include) set(LIBRARY_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(3rdparty/gtest)