diff options
author | Hyper Nova Sun <hypernovasun@icloud.com> | 2022-04-12 04:44:20 (GMT) |
---|---|---|
committer | Hyper Nova Sun <hypernovasun@icloud.com> | 2022-04-12 16:11:47 (GMT) |
commit | 40dd46a96a5751f4a109ae555ce3b835b4c9ca68 (patch) | |
tree | 1e813be7ef5e9cd470e5b02ee2322c6b27e13020 /Tests/RunCMake/CMakeLists.txt | |
parent | da4ccb502b02af41b9db6c266df0c9ef999a1087 (diff) | |
download | CMake-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.txt | 3 |
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) |