From af921a9df8596b057ec9f486ab06a49d8868e0c5 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 21 May 2014 15:38:12 +0900 Subject: [PATCH] set rpath properly --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d5516437..7a727e9b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -22,5 +22,6 @@ add_library(picrin SHARED ${PICRIN_SOURCES} ${PICLIB_SOURCE} ${FLEX_scan_OUTPUTS target_link_libraries(picrin m ${PICRIN_CONTRIB_LIBRARIES}) # install +set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) install(TARGETS picrin DESTINATION lib) install(DIRECTORY include/ DESTINATION include FILES_MATCHING PATTERN "*.h")