mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
Handle CMAKE_INSTALL_LIBDIR being absolute
This seems to be common in distro packaging environments.
This commit is contained in:
parent
261b9125f6
commit
dbbfe8e455
|
@ -12,7 +12,10 @@ string(REGEX REPLACE "/$" "" MANIFEST_RELATIVE_DIR "${MANIFEST_RELATIVE_DIR}")
|
||||||
|
|
||||||
if(OPENXR_INSTALL_ABSOLUTE_RUNTIME_PATH)
|
if(OPENXR_INSTALL_ABSOLUTE_RUNTIME_PATH)
|
||||||
# Absolute path to runtime
|
# Absolute path to runtime
|
||||||
set(RUNTIME_PATH ${CMAKE_INSTALL_PREFIX}/${RUNTIME_RELATIVE_DIR}/${RUNTIME_FILENAME})
|
set(RUNTIME_PATH ${RUNTIME_RELATIVE_DIR}/${RUNTIME_FILENAME})
|
||||||
|
if(NOT IS_ABSOLUTE ${RUNTIME_RELATIVE_DIR})
|
||||||
|
set(RUNTIME_PATH ${CMAKE_INSTALL_PREFIX}/${RUNTIME_PATH})
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
# Relative path to runtime: requires it exist on the system shared library search path.
|
# Relative path to runtime: requires it exist on the system shared library search path.
|
||||||
set(RUNTIME_PATH ${RUNTIME_FILENAME})
|
set(RUNTIME_PATH ${RUNTIME_FILENAME})
|
||||||
|
|
Loading…
Reference in a new issue