From bd47edcbe5ddcad3affda1c73f10de8a4c86439b Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sun, 10 Nov 2019 10:43:39 +0100 Subject: [PATCH] Disable GTest installation --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f74872..87a88cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()