summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorHyper Nova Sun <hypernovasun@icloud.com>2022-04-12 04:44:20 (GMT)
committerHyper Nova Sun <hypernovasun@icloud.com>2022-04-12 16:11:47 (GMT)
commit40dd46a96a5751f4a109ae555ce3b835b4c9ca68 (patch)
tree1e813be7ef5e9cd470e5b02ee2322c6b27e13020 /Tests/RunCMake/CMakeLists.txt
parentda4ccb502b02af41b9db6c266df0c9ef999a1087 (diff)
downloadCMake-40dd46a96a5751f4a109ae555ce3b835b4c9ca68.zip
CMake-40dd46a96a5751f4a109ae555ce3b835b4c9ca68.tar.gz
CMake-40dd46a96a5751f4a109ae555ce3b835b4c9ca68.tar.bz2
Xcode: Add tests for OBJECT library per target `OSX_ARCHITECTURES`
Added test to cover handling of when `CMAKE_OSX_ARCHITECTURES` differs from OBJECT library target's `OSX_ARCHITECTURES`: TargetOverrideSingleArch: - When `CMAKE_OSX_ARCHITECTURES` is set to multiple archs, - But OBJECT library's `OSX_ARCHITECTURES` is set to single - Assert that OBJECT library target "`HasKnownObjectFileLocation`" and is installable TargetOverrideMultiArch: - When `CMAKE_OSX_ARCHITECTURES` is set to single arch, - But OBJECT library's `OSX_ARCHITECTURES` is set to multiple - Assert that OBJECT library target does not "`HasKnownObjectFileLocation`" and hence not installable
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index dbff293..024c388 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -352,6 +352,9 @@ if(MSVC)
add_RunCMake_test(MSVCRuntimeTypeInfo)
add_RunCMake_test(MSVCWarningFlags)
endif()
+if(XCODE_VERSION)
+ set(ObjectLibrary_ARGS -DXCODE_VERSION=${XCODE_VERSION})
+endif()
add_RunCMake_test(ObjectLibrary)
add_RunCMake_test(ParseImplicitIncludeInfo)
add_RunCMake_test(ParseImplicitLinkInfo)