From 98d20316bdf701865a3e3c4df7d378917224b8b0 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Fri, 20 Jan 2012 22:02:01 -0700 Subject: [PATCH] Fix BundleUtilities test failure with space in build path. --- Tests/BundleUtilities/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/BundleUtilities/CMakeLists.txt b/Tests/BundleUtilities/CMakeLists.txt index efbf1522d..8f24afe9a 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