Skip to content

Commit

Permalink
[FOLD] Use BUILD_RPATH for jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeLoser committed Jun 30, 2018
1 parent 78465ad commit b55220d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ if (jemalloc)
target_include_directories (opts SYSTEM INTERFACE ${JEMALLOC_INCLUDE_DIRS})
target_link_libraries (opts INTERFACE ${JEMALLOC_LIBRARIES})
get_filename_component (JEMALLOC_LIB_PATH ${JEMALLOC_LIBRARIES} DIRECTORY)
## TODO see if we can use the BUILD_RPATH target property (is it transitive?)
set (CMAKE_BUILD_RPATH ${CMAKE_BUILD_RPATH} ${JEMALLOC_LIB_PATH})
set_target_properties(opts PROPERTIES BUILD_RPATH ${JEMALLOC_LIB_PATH})
endif ()

if (san)
Expand Down

0 comments on commit b55220d

Please sign in to comment.