[Kst] branches/work/kst/portto4/kst/cmake
Peter Kümmel
syntheticpp at gmx.net
Fri Feb 18 22:40:23 CET 2011
SVN commit 1221541 by kuemmel:
cmake: make is possible to suppress the using of rpaths
M +4 -0 CMakeLists.txt
--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1221540:1221541
@@ -30,6 +30,7 @@
kst_option(pch "Use precompiled headers" ON all)
kst_option(edit_cont "Enable \"Edit and Continue\" for Visual Studio" OFF win)
kst_option(svnversion "Use svnversion's output for Kst's version information" ON all)
+kst_option(rpath "Use rpath" ON gcc)
message(STATUS)
@@ -136,9 +137,12 @@
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
+if(kst_rpath)
# the RPATH to be used when installing
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+endif()
+
#path to install the .desktop files
set(kst_install_plugin_desktop_file_path share/services/kst)
More information about the Kst
mailing list