diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/itk/msvc-static-crt.diff | |
Diffstat (limited to 'vcpkg/ports/itk/msvc-static-crt.diff')
| -rw-r--r-- | vcpkg/ports/itk/msvc-static-crt.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/itk/msvc-static-crt.diff b/vcpkg/ports/itk/msvc-static-crt.diff new file mode 100644 index 0000000..2aef90d --- /dev/null +++ b/vcpkg/ports/itk/msvc-static-crt.diff @@ -0,0 +1,26 @@ +diff --git a/CMake/ITKConfig.cmake.in b/CMake/ITKConfig.cmake.in +index 6a565e8..ebf4230 100644 +--- a/CMake/ITKConfig.cmake.in ++++ b/CMake/ITKConfig.cmake.in +@@ -56,7 +56,7 @@ set(ITK_BUILD_SHARED "@ITK_BUILD_SHARED_LIBS@") + set(ITK_LIBRARY_BUILD_TYPE "@ITK_LIBRARY_BUILD_TYPE@") + + # Whether ITK links to MSVC's static CRT (/MT and /MTd). +-set(ITK_MSVC_STATIC_CRT "@ITK_MSVC_STATIC_RUNTIME_LIBRARY_value@") ++set(ITK_MSVC_STATIC_CRT "@ITK_MSVC_STATIC_CRT@") + + # Whether ITK examples were built. + set(ITK_BUILD_EXAMPLES "@BUILD_EXAMPLES@") +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1267b1a..da4bbb8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -130,7 +130,7 @@ if(MSVC) #-- Configure MSVC_STATIC_RUNTIME only if using MSVC environment + option(ITK_MSVC_STATIC_RUNTIME_LIBRARY "Link to MSVC's static CRT (/MT and /MTd). + OFF (default) means link to regular, dynamic CRT (/MD and /MDd)." OFF) + mark_as_advanced(ITK_MSVC_STATIC_RUNTIME_LIBRARY) +- set(ITK_MSVC_STATIC_RUNTIME_LIBRARY_value ${ITK_MSVC_STATIC_RUNTIME_LIBRARY}) ++ set(ITK_MSVC_STATIC_CRT ${ITK_MSVC_STATIC_RUNTIME_LIBRARY}) + if(ITK_MSVC_STATIC_RUNTIME_LIBRARY) + set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") + message(STATUS "Using MSVC's static CRT (/MT and /MTd)") |