From 7cf97a9bda1b67cd2adba6d972b693aff0d8b875 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 23 Jun 2021 20:23:09 +0200 Subject: [PATCH] CMake: Apply -DEXPAT_MSVC_STATIC_CRT=ON to off-grid built types --- expat/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index fcd0c39a..c6b0172f 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -306,10 +306,12 @@ if (MSVC) if (EXPAT_MSVC_STATIC_CRT) message("-- Using static CRT ${EXPAT_MSVC_STATIC_CRT}") foreach(flag_var + CMAKE_CXX_FLAGS_${_EXPAT_BUILD_TYPE_UPPER} CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO + CMAKE_C_FLAGS_${_EXPAT_BUILD_TYPE_UPPER} CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_MINSIZEREL