Skip to content

Commit 4ae1601

Browse files
committed
SAL fix
1 parent 50f95ba commit 4ae1601

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

SHMath/CMakeLists.txt

+13
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,16 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
217217
target_compile_options(${PROJECT_NAME} PRIVATE $<$<VERSION_GREATER_EQUAL:${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION},10.0.22000>:/Zc:templateScope>)
218218
endif()
219219
endif()
220+
221+
if(NOT WIN32)
222+
include(FetchContent)
223+
FetchContent_Declare(
224+
salheaderforsh
225+
URL https://raw.githubusercontent.com/dotnet/runtime/v9.0.2/src/coreclr/pal/inc/rt/sal.h
226+
URL_HASH SHA512=8085f67bfa4ce01ae89461cadf72454a9552fde3f08b2dcc3de36b9830e29ce7a6192800f8a5cb2a66af9637be0017e85719826a4cfdade508ae97f319e0ee8e
227+
DOWNLOAD_NO_EXTRACT ON
228+
)
229+
FetchContent_MakeAvailable(salheaderforsh)
230+
231+
target_include_directories(${PROJECT_NAME} PRIVATE ${salheaderforsh_SOURCE_DIR})
232+
endif()

0 commit comments

Comments
 (0)