diff --git a/CMakeLists.txt b/CMakeLists.txt index f3777be3..fa88e485 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,6 +172,9 @@ if(KOMPUTE_OPT_BUILD_TESTS) if(KOMPUTE_OPT_USE_BUILT_IN_GOOGLE_TEST) FetchContent_Declare(googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG release-1.11.0) # Source: https://github.com/google/googletest/releases + + # Use a shared C runtime in case we build shared + set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) add_library(gtest_int INTERFACE)