diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2017-06-28 19:59:48 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2017-06-28 19:59:48 (GMT) |
commit | 610d2fcec04333761e036bfb57f99058102f6362 (patch) | |
tree | ca80abf54255d430c88b42e9c1a234ced60271ce /Modules/FindXCTest.cmake | |
parent | e40e8f5c4216ac1e176342887d1af95965528344 (diff) | |
download | CMake-610d2fcec04333761e036bfb57f99058102f6362.zip CMake-610d2fcec04333761e036bfb57f99058102f6362.tar.gz CMake-610d2fcec04333761e036bfb57f99058102f6362.tar.bz2 |
XCTest: Use bundle specific generator expressions
Diffstat (limited to 'Modules/FindXCTest.cmake')
-rw-r--r-- | Modules/FindXCTest.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindXCTest.cmake b/Modules/FindXCTest.cmake index ffdf677..8497336 100644 --- a/Modules/FindXCTest.cmake +++ b/Modules/FindXCTest.cmake @@ -136,7 +136,7 @@ function(xctest_add_bundle target testee) XCODE_ATTRIBUTE_TEST_HOST "$<TARGET_FILE:${testee}>") if(NOT XCODE_VERSION VERSION_LESS 7.3) set_target_properties(${target} PROPERTIES - LIBRARY_OUTPUT_DIRECTORY "$<TARGET_FILE_DIR:${testee}>/../PlugIns") + LIBRARY_OUTPUT_DIRECTORY "$<TARGET_BUNDLE_CONTENT_DIR:${testee}>/PlugIns") endif() else(XCODE) target_link_libraries(${target} @@ -183,7 +183,7 @@ function(xctest_add_test name bundle) add_test( NAME ${name} - COMMAND ${XCTest_EXECUTABLE} $<TARGET_LINKER_FILE_DIR:${bundle}>/../..) + COMMAND ${XCTest_EXECUTABLE} $<TARGET_BUNDLE_DIR:${bundle}>) # point loader to testee in case rpath is disabled |