summaryrefslogtreecommitdiffstats
path: root/Modules/Internal
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-04 22:53:38 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-05 00:01:35 (GMT)
commit2a398cd9b6f1c2efb9d00fcb3e8e1d8c6ca9ccc9 (patch)
tree745a2abc5a10b1ff81bffd3d1df87873211275ed /Modules/Internal
parent5a61984088adb39de48f7d852c79e269f35c09f9 (diff)
downloadCMake-2a398cd9b6f1c2efb9d00fcb3e8e1d8c6ca9ccc9.zip
CMake-2a398cd9b6f1c2efb9d00fcb3e8e1d8c6ca9ccc9.tar.gz
CMake-2a398cd9b6f1c2efb9d00fcb3e8e1d8c6ca9ccc9.tar.bz2
CMakePackageConfigHelpers: Clarify generate_apple_*_selection_file signatures
The helpers added by: * commit 37bc3400cd (CMakePackageConfigHelpers: Add generate_apple_platform_selection_file(), 2023-11-03) * commit 4ac5a2f866 (CMakePackageConfigHelpers: Add generate_apple_architecture_selection_file(), 2023-12-19) were worded in terms of including package configuration files, but the actual functionality is to include files *from* package configuration files. The included files do not themselves need to be usable as package configuration files. Rename the options and clarify the documentation accordingly. Issue: #25262 Issue: #25516
Diffstat (limited to 'Modules/Internal')
-rw-r--r--Modules/Internal/ApplePlatformSelection.cmake.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/Internal/ApplePlatformSelection.cmake.in b/Modules/Internal/ApplePlatformSelection.cmake.in
index 493d650..5f5e01d 100644
--- a/Modules/Internal/ApplePlatformSelection.cmake.in
+++ b/Modules/Internal/ApplePlatformSelection.cmake.in
@@ -2,23 +2,23 @@
string(TOLOWER "${CMAKE_OSX_SYSROOT}" _CMAKE_OSX_SYSROOT_LOWER)
if(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)iphonesimulator")
- @_branch_IOS_SIMULATOR_CONFIG_FILE@
+ @_branch_IOS_SIMULATOR_INCLUDE_FILE@
elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)iphoneos")
- @_branch_IOS_CONFIG_FILE@
+ @_branch_IOS_INCLUDE_FILE@
elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)appletvsimulator")
- @_branch_TVOS_SIMULATOR_CONFIG_FILE@
+ @_branch_TVOS_SIMULATOR_INCLUDE_FILE@
elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)appletvos")
- @_branch_TVOS_CONFIG_FILE@
+ @_branch_TVOS_INCLUDE_FILE@
elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)watchsimulator")
- @_branch_WATCHOS_SIMULATOR_CONFIG_FILE@
+ @_branch_WATCHOS_SIMULATOR_INCLUDE_FILE@
elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)watchos")
- @_branch_WATCHOS_CONFIG_FILE@
+ @_branch_WATCHOS_INCLUDE_FILE@
elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)xrsimulator")
- @_branch_VISIONOS_SIMULATOR_CONFIG_FILE@
+ @_branch_VISIONOS_SIMULATOR_INCLUDE_FILE@
elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)xros")
- @_branch_VISIONOS_CONFIG_FILE@
+ @_branch_VISIONOS_INCLUDE_FILE@
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
- @_branch_MACOS_CONFIG_FILE@
+ @_branch_MACOS_INCLUDE_FILE@
else()
message(FATAL_ERROR "Platform not supported")
endif()