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.
This commit is contained in:
Brad King
2023-12-12 15:36:31 -05:00
parent 9324668517
commit 6cbd0658c5
2 changed files with 2 additions and 2 deletions

View File

@@ -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}")

View File

@@ -1 +1 @@
set(CMAKE_SYSTEM_NAME "Darwin")
set(CMAKE_EFFECTIVE_SYSTEM_NAME "Apple")