projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
cmake: IMPORT, EXPORT and RPATH improvements
[awesomized/libmemcached]
/
CMakeConfig.txt
diff --git
a/CMakeConfig.txt
b/CMakeConfig.txt
index 41b76324d486f8c2400b4e643e399876b2443955..0d584981c27737cb9e063010a4096428342adc22 100644
(file)
--- a/
CMakeConfig.txt
+++ b/
CMakeConfig.txt
@@
-3,6
+3,15
@@
set(CMAKE_BUILD_TYPE Release
set(CMAKE_INSTALL_PREFIX /usr/local
CACHE PATH "install prefix")
set(CMAKE_INSTALL_PREFIX /usr/local
CACHE PATH "install prefix")
+if(APPLE)
+ set(CMAKE_INSTALL_RPATH @loader_path
+ CACHE STRING "set relative rpath")
+elseif(UNIX)
+ # FIXME
+ set(CMAKE_INSTALL_RPATH $ORIGIN
+ CACHE STRING "set relative rpath")
+endif()
+
option(BUILD_TESTING "whether to enable build of the test suite"
OFF)
option(BUILD_DOCSONLY "build *only* documentation"
option(BUILD_TESTING "whether to enable build of the test suite"
OFF)
option(BUILD_DOCSONLY "build *only* documentation"