summaryrefslogtreecommitdiff
path: root/indra/newview/ViewerInstall.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/ViewerInstall.cmake')
-rw-r--r--indra/newview/ViewerInstall.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/ViewerInstall.cmake b/indra/newview/ViewerInstall.cmake
index 17ba8ff2fc..47a0512885 100644
--- a/indra/newview/ViewerInstall.cmake
+++ b/indra/newview/ViewerInstall.cmake
@@ -101,10 +101,10 @@ else (${LINUX_DISTRO} MATCHES arch)
endif (${LINUX_DISTRO} MATCHES arch)
if (LINUX)
- if (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu)
+ if (${LINUX_DISTRO} MATCHES debian OR (${LINUX_DISTRO} MATCHES ubuntu))
set(_LIB lib/${ARCH}-linux-gnu)
- elseif (EXISTS /lib64 AND NOT ${LINUX_DISTRO} MATCHES arch)
- set(_LIB lib64)
+ elseif (${LINUX_DISTRO} MATCHES fedora OR (${LINUX_DISTRO} MATCHES opensuse-tumbleweed))
+ set(_LIB lib${ADDRESS_SIZE})
else ()
set(_LIB lib)
endif ()