Fix BundleUtilities test failure with space in build path.

This commit is contained in:
Clinton Stimpson 2012-01-20 22:02:01 -07:00
parent 36d66416f4
commit 98d20316bd
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ if(APPLE AND NOT CMAKE_SYSTEM_VERSION VERSION_LESS 9.0)
# a loadable module (depends on shared2) # a loadable module (depends on shared2)
# testbundleutils1 will load this at runtime # testbundleutils1 will load this at runtime
add_library(module3 MODULE module.cpp module.h) 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) get_target_property(module_loc module3 LOCATION)
target_link_libraries(module3 shared2-3) 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) get_target_property(loc testbundleutils3 LOCATION)
set_target_properties(testbundleutils3 module3 PROPERTIES 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 to install and test the app
add_custom_target(testbundleutils3_test ALL add_custom_target(testbundleutils3_test ALL