diff options
author | Brad King <brad.king@kitware.com> | 2023-12-05 16:27:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-12-07 21:54:09 (GMT) |
commit | f23636617a5baeedf47abc0d96e9c1ca1f30bfee (patch) | |
tree | 32b7d914e1ea80dc832cd828dfdd44ae66036e57 /Modules/Internal/PlatformSelectionFile.cmake.in | |
parent | 3c991f56e72daf65e26d7f081bfd23e21d6b45c4 (diff) | |
download | CMake-f23636617a5baeedf47abc0d96e9c1ca1f30bfee.zip CMake-f23636617a5baeedf47abc0d96e9c1ca1f30bfee.tar.gz CMake-f23636617a5baeedf47abc0d96e9c1ca1f30bfee.tar.bz2 |
CMakePackageConfigHelpers: Move platform selection template to Internal/
The template added by commit 37bc3400cd (CMakePackageConfigHelpers: Add
generate_apple_platform_selection_file(), 2023-11-03) is a private
implementation detail. Move it to `Modules/Internal/`.
Diffstat (limited to 'Modules/Internal/PlatformSelectionFile.cmake.in')
-rw-r--r-- | Modules/Internal/PlatformSelectionFile.cmake.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Modules/Internal/PlatformSelectionFile.cmake.in b/Modules/Internal/PlatformSelectionFile.cmake.in new file mode 100644 index 0000000..3f80f4b --- /dev/null +++ b/Modules/Internal/PlatformSelectionFile.cmake.in @@ -0,0 +1,24 @@ +@PACKAGE_INIT@ + +string(TOLOWER "${CMAKE_OSX_SYSROOT}" _CMAKE_OSX_SYSROOT_LOWER) +if(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)iphonesimulator") + @_branch_IOS_SIMULATOR_CONFIG_FILE@ +elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)iphoneos") + @_branch_IOS_CONFIG_FILE@ +elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)tvsimulator") + @_branch_TVOS_SIMULATOR_CONFIG_FILE@ +elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)tvos") + @_branch_TVOS_CONFIG_FILE@ +elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)watchsimulator") + @_branch_WATCHOS_SIMULATOR_CONFIG_FILE@ +elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)watchos") + @_branch_WATCHOS_CONFIG_FILE@ +elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)xrsimulator") + @_branch_VISIONOS_SIMULATOR_CONFIG_FILE@ +elseif(_CMAKE_OSX_SYSROOT_LOWER MATCHES "(^|/)xros") + @_branch_VISIONOS_CONFIG_FILE@ +elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + @_branch_MACOS_CONFIG_FILE@ +else() + message(FATAL_ERROR "Platform not supported") +endif() |