]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
cmake: prefer absolute paths instead of relative ones
authorThomas Debesse <dev@illwieckz.net>
Mon, 3 Jun 2019 21:39:14 +0000 (23:39 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sun, 16 Jun 2019 13:22:23 +0000 (15:22 +0200)
CMakeLists.txt

index bfecfd18554ae26c4f8da343df2e9d91d99ca4dc..fa8474c622ffd668954a82567336207b782d2232 100644 (file)
@@ -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 ()
 
 #-----------------------------------------------------------------------