diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2012-01-21 05:02:01 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2012-01-21 05:02:01 (GMT) |
commit | 98d20316bdf701865a3e3c4df7d378917224b8b0 (patch) | |
tree | 5ac61f44c45ee5548201f8373fea4738e77b55cf /Tests/BundleUtilities/CMakeLists.txt | |
parent | 36d66416f4f47ecf0cf84b1618b60bb7d853f2e5 (diff) | |
download | CMake-98d20316bdf701865a3e3c4df7d378917224b8b0.zip CMake-98d20316bdf701865a3e3c4df7d378917224b8b0.tar.gz CMake-98d20316bdf701865a3e3c4df7d378917224b8b0.tar.bz2 |
Fix BundleUtilities test failure with space in build path.
Diffstat (limited to 'Tests/BundleUtilities/CMakeLists.txt')
-rw-r--r-- | Tests/BundleUtilities/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/BundleUtilities/CMakeLists.txt b/Tests/BundleUtilities/CMakeLists.txt index efbf152..8f24afe 100644 --- a/Tests/BundleUtilities/CMakeLists.txt +++ b/Tests/BundleUtilities/CMakeLists.txt @@ -106,7 +106,7 @@ if(APPLE AND NOT CMAKE_SYSTEM_VERSION VERSION_LESS 9.0) # a loadable module (depends on shared2) # testbundleutils1 will load this at runtime add_library(module3 MODULE module.cpp module.h) - set_target_properties(module3 PROPERTIES PREFIX "" LINK_FLAGS "-Wl,-rpath,${CMAKE_CURRENT_BINARY_DIR}/testdir3") + set_target_properties(module3 PROPERTIES PREFIX "" LINK_FLAGS "-Wl,-rpath,@loader_path/") get_target_property(module_loc module3 LOCATION) target_link_libraries(module3 shared2-3) @@ -116,7 +116,7 @@ if(APPLE AND NOT CMAKE_SYSTEM_VERSION VERSION_LESS 9.0) get_target_property(loc testbundleutils3 LOCATION) set_target_properties(testbundleutils3 module3 PROPERTIES - LINK_FLAGS "-Wl,-rpath,${CMAKE_CURRENT_BINARY_DIR}/testdir3") + LINK_FLAGS "-Wl,-rpath,@loader_path/") # add custom target to install and test the app add_custom_target(testbundleutils3_test ALL |