Przeglądaj źródła

build system: minor changes to make tests compile with VS

Michele Caini 6 lat temu
rodzic
commit
0dfd2aa714
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      test/CMakeLists.txt

+ 1 - 0
test/CMakeLists.txt

@@ -21,6 +21,7 @@ else()
 
 
     if(NOT googletest_POPULATED)
     if(NOT googletest_POPULATED)
         FetchContent_Populate(googletest)
         FetchContent_Populate(googletest)
+        set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
         add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
         add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
     endif()
     endif()