mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
Set RPATH to install location, for #87.
This commit is contained in:
parent
6700a76c0d
commit
31e302cb4a
@ -72,6 +72,7 @@ set (CPACK_SOURCE_IGNORE_FILES
|
||||
"/build/")
|
||||
include (CPack)
|
||||
|
||||
# Compile-time configuration.
|
||||
configure_file (${CMAKE_SOURCE_DIR}/config.h.cmake
|
||||
${CMAKE_BINARY_DIR}/config.h)
|
||||
|
||||
@ -118,6 +119,9 @@ target_link_libraries(encfs
|
||||
)
|
||||
install (TARGETS encfs DESTINATION lib)
|
||||
|
||||
# Set RPATH to library install path.
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
|
||||
add_executable (encfs-bin encfs/main.cpp)
|
||||
target_link_libraries (encfs-bin encfs)
|
||||
set_target_properties (encfs-bin PROPERTIES OUTPUT_NAME "encfs")
|
||||
|
Loading…
Reference in New Issue
Block a user