From: Thomas Debesse Date: Mon, 3 Jun 2019 21:39:14 +0000 (+0200) Subject: cmake: prefer absolute paths instead of relative ones X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=87b3fae349cf118db8538922bca812af4ed04c7f;p=xonotic%2Fnetradiant.git cmake: prefer absolute paths instead of relative ones --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bfecfd18..fa8474c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,9 +30,9 @@ set(RADIANT_BIN_DIR ${CMAKE_INSTALL_PREFIX} CACHE INTERNAL "...") set(RADIANT_DATA_DIR ${CMAKE_INSTALL_PREFIX} CACHE INTERNAL "...") if (FHS_INSTALL) - set(RADIANT_LIB_DIR lib/${RADIANT_BASENAME}) - set(RADIANT_BIN_DIR bin) - set(RADIANT_DATA_DIR share/${RADIANT_BASENAME}) + set(RADIANT_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib/${RADIANT_BASENAME}) + set(RADIANT_BIN_DIR ${CMAKE_INSTALL_PREFIX}/bin) + set(RADIANT_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/${RADIANT_BASENAME}) endif () #-----------------------------------------------------------------------