summaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/SPIRV-Cross
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-05-25 18:49:20 -0400
committerAndrew Opalach <andrew@akon.city> 2025-05-25 18:49:20 -0400
commit2fa7ea95c891981684a55b41977172d040c2cc55 (patch)
treed349e810b3178045a420b625f6dbe5634b64807b /subprojects/packagefiles/SPIRV-Cross
parent01f852081b1291da7fc342976bf5228ffb618736 (diff)
downloadcamu-2fa7ea95c891981684a55b41977172d040c2cc55.tar.gz
camu-2fa7ea95c891981684a55b41977172d040c2cc55.tar.bz2
camu-2fa7ea95c891981684a55b41977172d040c2cc55.zip
Support Windows XP (Old FFmpeg and build fixes)
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'subprojects/packagefiles/SPIRV-Cross')
-rw-r--r--subprojects/packagefiles/SPIRV-Cross/msvc_static_build.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/subprojects/packagefiles/SPIRV-Cross/msvc_static_build.diff b/subprojects/packagefiles/SPIRV-Cross/msvc_static_build.diff
new file mode 100644
index 0000000..5047537
--- /dev/null
+++ b/subprojects/packagefiles/SPIRV-Cross/msvc_static_build.diff
@@ -0,0 +1,17 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b2ab5ed..49d7d5a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -31,6 +31,12 @@ endif()
+ # Avoid error on Android NDK 27+'s CMake files
+ cmake_policy(SET CMP0057 NEW)
+
++# https://github.com/KhronosGroup/SPIRV-Cross/issues/2341
++if (POLICY CMP0091)
++ cmake_policy(SET CMP0091 NEW)
++endif()
++set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
++
+ project(SPIRV-Cross LANGUAGES CXX C)
+ enable_testing()
+