Fix linker issue when compiling with CMake and MSVC on Windows by setting gtest_force_shared_crt=ON

This commit is contained in:
Markus Trenkwalder 2020-09-16 08:37:14 +02:00
parent e73f72be73
commit d735386bf2
1 changed files with 1 additions and 1 deletions

View File

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