summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-28 08:44:58 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-28 08:44:58 +0800
commit94408352d5105e14bfa56a946b36e3b7d1b01637 (patch)
treef4b33ba0282e8602dc1fcfdb5299d577a238be86 /indra
parent67a99f7db7d22b0380befa1f304e2ca22e134f38 (diff)
Fix order of checking lib64 & lib/x86_64-linux-gnu
Ubuntu, unlike Debian, has /lib64 and /usr/lib64 in their system, so it misled CMake. This is a quick fix, ideally it's the distro name that is checked.
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/UnixInstall.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/cmake/UnixInstall.cmake b/indra/cmake/UnixInstall.cmake
index 021700b374..7aa05ff5a6 100644
--- a/indra/cmake/UnixInstall.cmake
+++ b/indra/cmake/UnixInstall.cmake
@@ -14,13 +14,13 @@ if (INSTALL)
"Top-level installation directory.")
endif (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
- if (EXISTS /lib64)
- set(_LIB lib64)
- elseif (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu)
+ if (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu)
set(_LIB lib/${ARCH}-linux-gnu)
- else (EXISTS /lib64)
+ elseif (EXISTS /lib64)
+ set(_LIB lib64)
+ else (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu)
set(_LIB lib)
- endif (EXISTS /lib64)
+ endif (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu)
set(INSTALL_LIBRARY_DIR ${INSTALL_PREFIX}/${_LIB} CACHE PATH
"Installation directory for read-only shared files.")