Fix RPATH for the unit test binaries

fixes #8806
This commit is contained in:
Gunnar Beutner 2016-08-28 17:19:20 +02:00
parent 903db81fe0
commit ad0e4f4489
1 changed files with 1 additions and 6 deletions

View File

@ -143,12 +143,7 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/lib
)
#set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
if(APPLE)
set(CMAKE_INSTALL_NAME_DIR "@executable_path/..")
set(CMAKE_MACOSX_RPATH 0)
endif(APPLE)
set(CMAKE_MACOSX_RPATH 1)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments -g")