mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-17 04:31:04 -06:00
Tests/RunCMake/CMakePackage: Define variable closer to where it is used
This commit is contained in:
@@ -48,9 +48,6 @@ if(APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(APPLE AND CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
|
if(APPLE AND CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
|
||||||
set(apple_install ${RunCMake_BINARY_DIR}/apple-install)
|
|
||||||
file(REMOVE_RECURSE "${apple_install}")
|
|
||||||
|
|
||||||
if(CMake_TEST_XCODE_VERSION VERSION_GREATER_EQUAL 12)
|
if(CMake_TEST_XCODE_VERSION VERSION_GREATER_EQUAL 12)
|
||||||
set(macos_archs "x86_64;arm64")
|
set(macos_archs "x86_64;arm64")
|
||||||
set(tvos_sim_archs "x86_64;arm64")
|
set(tvos_sim_archs "x86_64;arm64")
|
||||||
@@ -78,6 +75,10 @@ if(APPLE AND CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
|
|||||||
set(enable_visionos 1)
|
set(enable_visionos 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Place all export/import steps in a single install prefix.
|
||||||
|
set(apple_install ${RunCMake_BINARY_DIR}/apple-install)
|
||||||
|
file(REMOVE_RECURSE "${apple_install}")
|
||||||
|
|
||||||
apple_export(macos Darwin "${macos_archs}" macosx)
|
apple_export(macos Darwin "${macos_archs}" macosx)
|
||||||
apple_export(ios iOS "arm64" iphoneos)
|
apple_export(ios iOS "arm64" iphoneos)
|
||||||
apple_export(tvos tvOS "arm64" appletvos)
|
apple_export(tvos tvOS "arm64" appletvos)
|
||||||
|
|||||||
Reference in New Issue
Block a user