diff options
author | Guillaume Campagna <guillaume.campagna@gmail.com> | 2017-04-20 20:09:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-25 13:56:34 (GMT) |
commit | bfa92e5725121d2c770fa6f0f47383c0436d768a (patch) | |
tree | 2eb4a4c383411b1599eebd2ecf5b9bc6e4b3da01 /Modules/FindXCTest.cmake | |
parent | b4d3cdc8c504ddc5d2618203a831c950f8d0102a (diff) | |
download | CMake-bfa92e5725121d2c770fa6f0f47383c0436d768a.zip CMake-bfa92e5725121d2c770fa6f0f47383c0436d768a.tar.gz CMake-bfa92e5725121d2c770fa6f0f47383c0436d768a.tar.bz2 |
XCTest: Add support for static frameworks
Fixes: #16636
Diffstat (limited to 'Modules/FindXCTest.cmake')
-rw-r--r-- | Modules/FindXCTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindXCTest.cmake b/Modules/FindXCTest.cmake index a97bb1b..ffdf677 100644 --- a/Modules/FindXCTest.cmake +++ b/Modules/FindXCTest.cmake @@ -123,6 +123,10 @@ function(xctest_add_bundle target testee) # testee is a Framework target_link_libraries(${target} PRIVATE ${testee}) + elseif(_testee_type STREQUAL "STATIC_LIBRARY") + # testee is a static library + target_link_libraries(${target} PRIVATE ${testee}) + elseif(_testee_type STREQUAL "EXECUTABLE" AND _testee_macosx_bundle) # testee is an App Bundle add_dependencies(${target} ${testee}) |