From: <mar...@us...> - 2014-02-01 10:00:59
|
Revision: 6789 http://sourceforge.net/p/freeorion/code/6789 Author: marcel_metz Date: 2014-02-01 10:00:56 +0000 (Sat, 01 Feb 2014) Log Message: ----------- Allow CMAKE to determine RPATH for locating private libraries in an installation. Modified Paths: -------------- trunk/FreeOrion/CMakeLists.txt Modified: trunk/FreeOrion/CMakeLists.txt =================================================================== --- trunk/FreeOrion/CMakeLists.txt 2014-02-01 10:00:45 UTC (rev 6788) +++ trunk/FreeOrion/CMakeLists.txt 2014-02-01 10:00:56 UTC (rev 6789) @@ -26,6 +26,11 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) +set(CMAKE_SKIP_BUILD_RPATH FALSE) +set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/freeorion") +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + if (WIN32) add_definitions( -D_CRT_SECURE_NO_DEPRECATE |