summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-09 12:34:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-03-09 12:35:16 (GMT)
commitf8da094786c138fec040518d2c0d63d059a8dd45 (patch)
treec8ef6f69180ac9f82523facd9fe399fb8dce3142
parentfff41b8fdee3de56ad438c9fe1be7c8dbb0dc6f0 (diff)
parentc68ebee9c23f6278baae592e87d145596ca84f7b (diff)
downloadCMake-f8da094786c138fec040518d2c0d63d059a8dd45.zip
CMake-f8da094786c138fec040518d2c0d63d059a8dd45.tar.gz
CMake-f8da094786c138fec040518d2c0d63d059a8dd45.tar.bz2
Merge topic 'windows-arm64-recursion-limit'
c68ebee9c2 cmake: Reduce default recursion depth when compiling for Windows ARM64 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8302
-rw-r--r--Source/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index e99da49..163dab3 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -16,6 +16,8 @@ if(NOT CMake_DEFAULT_RECURSION_LIMIT)
set(CMake_DEFAULT_RECURSION_LIMIT 100)
elseif(MINGW OR MSYS)
set(CMake_DEFAULT_RECURSION_LIMIT 400)
+ elseif(WIN32 AND CMAKE_C_COMPILER_ARCHITECTURE_ID STREQUAL "ARM64")
+ set(CMake_DEFAULT_RECURSION_LIMIT 400)
elseif(WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
set(CMake_DEFAULT_RECURSION_LIMIT 600)
else()