diff options
Diffstat (limited to 'vcpkg/ports/directxmath/Linux-SHMath-SAL.patch')
| -rw-r--r-- | vcpkg/ports/directxmath/Linux-SHMath-SAL.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/directxmath/Linux-SHMath-SAL.patch b/vcpkg/ports/directxmath/Linux-SHMath-SAL.patch new file mode 100644 index 0000000..f6352d9 --- /dev/null +++ b/vcpkg/ports/directxmath/Linux-SHMath-SAL.patch @@ -0,0 +1,21 @@ +diff --git a/SHMath/CMakeLists.txt b/SHMath/CMakeLists.txt +index 8a21ee7..5d9ea30 100644 +--- a/SHMath/CMakeLists.txt ++++ b/SHMath/CMakeLists.txt +@@ -217,3 +217,13 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") + target_compile_options(${PROJECT_NAME} PRIVATE $<$<VERSION_GREATER_EQUAL:${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION},10.0.22000>:/Zc:templateScope>) + endif() + endif() ++ ++if(NOT WIN32) ++ file(DOWNLOAD ++ https://raw.githubusercontent.com/dotnet/runtime/v9.0.2/src/coreclr/pal/inc/rt/sal.h ++ "${CMAKE_CURRENT_BINARY_DIR}/sal/sal.h" ++ EXPECTED_HASH SHA512=8085f67bfa4ce01ae89461cadf72454a9552fde3f08b2dcc3de36b9830e29ce7a6192800f8a5cb2a66af9637be0017e85719826a4cfdade508ae97f319e0ee8e ++ ) ++ ++ target_include_directories(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/sal") ++endif() +-- +2.49.0.windows.1 + |