cmake: Fix RPATH/RUNPATH issue with openSuse wxWidgets libdir.

Gregory: Add an if clause to only change the rpath on openSuse

For me it doesn't follow the FHS => http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html
This commit is contained in:
Johannes Obermayr 2014-08-30 23:36:29 +02:00 committed by Gregory Hainaut
parent 73433c25f2
commit 2bc2047770
4 changed files with 21 additions and 0 deletions

View File

@ -23,6 +23,9 @@ function(detectOperatingSystem)
if ("${OS_RELEASE}" MATCHES "^.*ID=fedora.*$")
set(Fedora TRUE PARENT_SCOPE)
endif()
if ("${OS_RELEASE}" MATCHES "^.*ID=.*suse.*$")
set(OpenSuse TRUE PARENT_SCOPE)
endif()
endif()
endif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")

View File

@ -1,3 +1,9 @@
if (OpenSuse)
# OpenSuse don't install wx in a standard library system
# path. Let's bypass the dynamic linker and hardcode the path.
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
endif()
# Check that people use the good file
if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "

View File

@ -1,3 +1,9 @@
if (OpenSuse)
# OpenSuse don't install wx in a standard library system
# path. Let's bypass the dynamic linker and hardcode the path.
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
endif()
# Check that people use the good file
if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "

View File

@ -1,3 +1,9 @@
if (OpenSuse)
# OpenSuse don't install wx in a standard library system
# path. Let's bypass the dynamic linker and hardcode the path.
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
endif()
# Check that people use the good file
if(NOT TOP_CMAKE_WAS_SOURCED)
message(FATAL_ERROR "