[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi CMakeLists.txt
From: |
certi-cvs |
Subject: |
[certi-cvs] certi CMakeLists.txt |
Date: |
Tue, 24 Jun 2008 09:16:51 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 08/06/24 09:16:51
Modified files:
. : CMakeLists.txt
Log message:
Add option in order to use full rpath
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/CMakeLists.txt?cvsroot=certi&r1=1.47&r2=1.48
Patches:
Index: CMakeLists.txt
===================================================================
RCS file: /sources/certi/certi/CMakeLists.txt,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- CMakeLists.txt 18 Jun 2008 11:14:24 -0000 1.47
+++ CMakeLists.txt 24 Jun 2008 09:16:50 -0000 1.48
@@ -25,6 +25,26 @@
OPTION(BUILD_SHARED
"Build libraries as shared library" ON)
+OPTION(USE_FULL_RPATH
+ "Use the full RPATH" OFF)
+
+IF (USE_FULL_RPATH)
+ # see http://www.cmake.org/Wiki/CMake_RPATH_handling#Always_full_RPATH
+ # use, i.e. don't skip the full RPATH for the build tree
+ SET(CMAKE_SKIP_BUILD_RPATH FALSE)
+
+ # when building, don't use the install RPATH already
+ # (but later on when installing)
+ SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+
+ # the RPATH to be used when installing
+ SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+
+ # add the automatically determined parts of the RPATH
+ # which point to directories outside the build tree to the install RPATH
+ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+ENDIF(USE_FULL_RPATH)
+
OPTION(BUILD_API_DOC
"Build doxygen documentation" OFF)
- [certi-cvs] certi CMakeLists.txt,
certi-cvs <=