From d735386bf27699b6b9c5c9b3840ecec8b279b355 Mon Sep 17 00:00:00 2001 From: Markus Trenkwalder Date: Wed, 16 Sep 2020 08:37:14 +0200 Subject: [PATCH] Fix linker issue when compiling with CMake and MSVC on Windows by setting gtest_force_shared_crt=ON --- runtime/Cpp/runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Cpp/runtime/CMakeLists.txt b/runtime/Cpp/runtime/CMakeLists.txt index 624606656..a8503bb61 100644 --- a/runtime/Cpp/runtime/CMakeLists.txt +++ b/runtime/Cpp/runtime/CMakeLists.txt @@ -9,7 +9,7 @@ ExternalProject_Add( GIT_TAG "v3.1.1" SOURCE_DIR ${UTFCPP_DIR} UPDATE_DISCONNECTED 1 - CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${UTFCPP_DIR}/install + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${UTFCPP_DIR}/install -Dgtest_force_shared_crt=ON TEST_AFTER_INSTALL 1 STEP_TARGETS build)