Răsfoiți Sursa

build system: minor changes to make tests compile with VS

Michele Caini 6 ani în urmă
părinte
comite
0dfd2aa714
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      test/CMakeLists.txt

+ 1 - 0
test/CMakeLists.txt

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