mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
73433c25f2
commit
2bc2047770
|
@ -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")
|
||||
|
||||
|
|
|
@ -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 "
|
||||
|
|
|
@ -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 "
|
||||
|
|
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue