mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 20:21:41 -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()
|
||||
|
||||
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)
|
||||
set(macos_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)
|
||||
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(ios iOS "arm64" iphoneos)
|
||||
apple_export(tvos tvOS "arm64" appletvos)
|
||||
|
||||
Reference in New Issue
Block a user