From 95dbea504e3c23cb947963a30c5fac79ef3fde6b Mon Sep 17 00:00:00 2001 From: Tania Mathern Date: Wed, 6 May 2026 15:33:32 -0700 Subject: [PATCH 1/2] fix: build change --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 54da8a8..75e0c1b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -234,6 +234,10 @@ endif() # Set compiler-specific flags for the C++ library if(MSVC) + # Statically link the CRT so the DLL has no dependency on a specific + # version installed on a target machine. + set_property(TARGET c2pa_cpp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded") + target_compile_options(c2pa_cpp PRIVATE /WX /sdl From e667c83e8f8db09d409a73821b486f69ad5b129a Mon Sep 17 00:00:00 2001 From: Tania Mathern Date: Wed, 6 May 2026 16:10:38 -0700 Subject: [PATCH 2/2] fix: build hangs --- src/CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 75e0c1b..54da8a8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -234,10 +234,6 @@ endif() # Set compiler-specific flags for the C++ library if(MSVC) - # Statically link the CRT so the DLL has no dependency on a specific - # version installed on a target machine. - set_property(TARGET c2pa_cpp PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded") - target_compile_options(c2pa_cpp PRIVATE /WX /sdl