20 changed files with 74 additions and 56 deletions
@ -1,21 +1,20 @@ |
|||||||
include(functions/FetchContent_MakeAvailableExcludeFromAll) |
include(functions/FetchContent_MakeAvailableExcludeFromAll) |
||||||
include(FetchContent) |
include(FetchContent) |
||||||
|
|
||||||
find_package(Patch REQUIRED) |
|
||||||
|
|
||||||
set(unordered_dense_URL "https://github.com/martinus/unordered_dense/archive/refs/tags/v4.4.0.tar.gz") |
set(unordered_dense_URL "https://github.com/martinus/unordered_dense/archive/refs/tags/v4.4.0.tar.gz") |
||||||
set(unordered_dense_HASH "f33c294a010540434b272754f937decf") |
set(unordered_dense_HASH "f33c294a010540434b272754f937decf") |
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") |
if(MINGW_CROSS) |
||||||
|
find_package(Patch REQUIRED) |
||||||
FetchContent_Declare(unordered_dense |
FetchContent_Declare(unordered_dense |
||||||
URL ${unordered_dense_URL} |
URL ${unordered_dense_URL} |
||||||
URL_HASH MD5=${unordered_dense_HASH} |
URL_HASH MD5=${unordered_dense_HASH} |
||||||
|
PATCH_COMMAND "${Patch_EXECUTABLE}" -p1 -N < "${CMAKE_CURRENT_LIST_DIR}/0001-Disable-PMR-support-for-mingw-std-threads-compat.patch" || true |
||||||
) |
) |
||||||
else() |
else() |
||||||
FetchContent_Declare(unordered_dense |
FetchContent_Declare(unordered_dense |
||||||
URL ${unordered_dense_URL} |
URL ${unordered_dense_URL} |
||||||
URL_HASH MD5=${unordered_dense_HASH} |
URL_HASH MD5=${unordered_dense_HASH} |
||||||
PATCH_COMMAND "${Patch_EXECUTABLE}" -p1 -N < "${CMAKE_CURRENT_LIST_DIR}/0001-Disable-PMR-support-for-mingw-std-threads-compat.patch" || true |
|
||||||
) |
) |
||||||
endif() |
endif() |
||||||
FetchContent_MakeAvailableExcludeFromAll(unordered_dense) |
FetchContent_MakeAvailableExcludeFromAll(unordered_dense) |
||||||
|
|||||||
Loading…
Reference in new issue