build system: minor changes to make tests compile with VS

This commit is contained in:
Michele Caini
2020-02-10 22:57:48 +01:00
parent 5d63c4c981
commit 0dfd2aa714

View File

@@ -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()