Explorar o código

build system: minor changes to make tests compile with VS

Michele Caini %!s(int64=6) %!d(string=hai) anos
pai
achega
0dfd2aa714
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()