From dac0a296f08e5b359f04069b7e01309397addf2a Mon Sep 17 00:00:00 2001 From: is-this-c <87069698+is-this-c@users.noreply.github.com> Date: Tue, 26 Nov 2024 04:54:47 +1300 Subject: [PATCH] Do not use /Zc:threadSafeInit- --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3d90719..f1f29643 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,8 @@ endif() set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) if(MSVC) - add_compile_options(/Zc:threadSafeInit-) + # `Zc:threadSafeInit-` is required by Windows XP. + # add_compile_options(/Zc:threadSafeInit-) add_compile_options(/arch:IA32) # Statically link Microsoft's CRT. set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>")