diff options
author | Brad King <brad.king@kitware.com> | 2023-12-12 20:36:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-03 22:07:52 (GMT) |
commit | 6cbd0658c56550a97acb21d4004ad3980f486eb0 (patch) | |
tree | ca7c9e4d7120c721738f0e6c1f5b3a379eeb38da /Modules/Internal | |
parent | 93246685177fc3d64a6b5dc01904a4437e6c2a9e (diff) | |
download | CMake-6cbd0658c56550a97acb21d4004ad3980f486eb0.zip CMake-6cbd0658c56550a97acb21d4004ad3980f486eb0.tar.gz CMake-6cbd0658c56550a97acb21d4004ad3980f486eb0.tar.bz2 |
LinkerId: Match Apple linker on all Apple platforms
`cmake_determine_linker_id` is only used for macOS because Apple device
platforms set `_CMAKE_FEATURE_DETECTION_TARGET_TYPE` to `STATIC_LIBRARY`,
but we might as well prepare for them anyway.
Diffstat (limited to 'Modules/Internal')
-rw-r--r-- | Modules/Internal/CMakeDetermineLinkerId.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Internal/CMakeDetermineLinkerId.cmake b/Modules/Internal/CMakeDetermineLinkerId.cmake index b66053f..7f0b516 100644 --- a/Modules/Internal/CMakeDetermineLinkerId.cmake +++ b/Modules/Internal/CMakeDetermineLinkerId.cmake @@ -35,7 +35,7 @@ function(cmake_determine_linker_id lang linker) OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE) - if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND linker_desc MATCHES "@\\(#\\)PROGRAM:ld.+PROJECT:[a-z0-9]+-([0-9.]+).+") + if(CMAKE_EFFECTIVE_SYSTEM_NAME STREQUAL "Apple" AND linker_desc MATCHES "@\\(#\\)PROGRAM:ld.+PROJECT:[a-z0-9]+-([0-9.]+).+") set(linker_id "AppleClang") set(linker_frontend "GNU") set(linker_version "${CMAKE_MATCH_1}") |