Skip to content

Commit 15579bd

Browse files
committed
CMake: Fix command line too long with Ninja/ARMClang on Windows
The issue is reported in: #14533 And relies on bugfix in newer cmake version: https://gitlab.kitware.com/cmake/cmake/-/issues/21093
1 parent c6d814e commit 15579bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ endif()
195195
if ("${CMAKE_GENERATOR}" MATCHES "Ninja")
196196
# known issue ARMClang and Ninja with response files for windows
197197
# https://gitlab.kitware.com/cmake/cmake/-/issues/21093
198-
if((CMAKE_HOST_SYSTEM_NAME MATCHES "Windows" AND NOT CMAKE_CXX_COMPILER_ID MATCHES "ARMClang"))
198+
# This gets fixed in newer cmake version
199+
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6484
200+
if((CMAKE_HOST_SYSTEM_NAME MATCHES "Windows") AND ((${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.22.0") OR (NOT CMAKE_CXX_COMPILER_ID MATCHES "ARMClang")))
199201
set(CMAKE_NINJA_FORCE_RESPONSE_FILE 1 CACHE INTERNAL "")
200202
endif()
201203
endif()

0 commit comments

Comments
 (0)