File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,11 @@ endif()
5252# Configure Hybrid CRT for Windows builds (must be before any targets)
5353# Uses static C++ runtime with dynamic Universal CRT to avoid MSVCP140.dll dependency
5454# See for details: https://github.com/microsoft/WindowsAppSDK/blob/main/docs/Coding-Guidelines/HybridCRT.md
55- set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
55+ # UWP (WindowsStore) targets do not support the hybrid runtime configuration, so let
56+ # them fall back to the toolchain default (dynamic CRT) to keep the ABI contract.
57+ if (NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" )
58+ set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
59+ endif ()
5660
5761# Enable source linking
5862if ("${CMAKE_C_COMPILER_ID} " MATCHES "MSVC" )
You can’t perform that action at this time.
0 commit comments