Disable GTest installation

This commit is contained in:
Flamefire 2019-11-10 10:43:39 +01:00
parent c3f9261eb8
commit bd47edcbe5

View file

@ -32,6 +32,8 @@ endif()
if(UTF8_TESTS)
enable_testing()
set(INSTALL_GTEST OFF CACHE INTERNAL "")
set(gtest_force_shared_crt ON CACHE INTERNAL "Need to use shared DLL for MSVC to avoid conflicts when linking")
add_subdirectory(extern/gtest)
add_subdirectory(tests)
endif()