summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-26 13:00:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-04-26 13:00:20 (GMT)
commit380232e10519d97a382bb50a048baa3044d3d170 (patch)
treeade861e05f688d575f3789a5104abd49b41e611a /Modules
parentf03bbc3970ce71ca4dd11b26ffab02e9ac62b7fe (diff)
parentbfa92e5725121d2c770fa6f0f47383c0436d768a (diff)
downloadCMake-380232e10519d97a382bb50a048baa3044d3d170.zip
CMake-380232e10519d97a382bb50a048baa3044d3d170.tar.gz
CMake-380232e10519d97a382bb50a048baa3044d3d170.tar.bz2
Merge topic 'xctest_static_framework'
bfa92e57 XCTest: Add support for static frameworks Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !732
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindXCTest.cmake4
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})