summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-06-27 16:07:34 (GMT)
committerBrad King <brad.king@kitware.com>2007-06-27 16:07:34 (GMT)
commiteab81489f10049fc1e97f65779adbca160fccf16 (patch)
treeeb40ef1065176de3b83865b9d0f0d3d8b4701a1c /Modules/Platform/Linux.cmake
parent6352bd5cd34be913415303f078cd02b32b1b4e41 (diff)
downloadCMake-eab81489f10049fc1e97f65779adbca160fccf16.zip
CMake-eab81489f10049fc1e97f65779adbca160fccf16.tar.gz
CMake-eab81489f10049fc1e97f65779adbca160fccf16.tar.bz2
ENH: Added global property FIND_LIBRARY_USE_LIB64_PATHS to allow lib64 paths to be searched optionally. Turn off the feature on debian systems. This addresses debian report 419007.
Diffstat (limited to 'Modules/Platform/Linux.cmake')
-rw-r--r--Modules/Platform/Linux.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake
index 5378a9c..4de71d0 100644
--- a/Modules/Platform/Linux.cmake
+++ b/Modules/Platform/Linux.cmake
@@ -48,3 +48,9 @@ ELSE(DEFINED CMAKE_INSTALL_SO_NO_EXE)
ENDIF(DEFINED CMAKE_INSTALL_SO_NO_EXE)
INCLUDE(Platform/UnixPaths)
+
+# Debian has lib64 paths only for compatibility so they should not be
+# searched.
+IF(EXISTS "/etc/debian_version")
+ SET_PROPERTIES(GLOBAL PROPERTIES FIND_LIBRARY_USE_LIB64_PATHS FALSE)
+ENDIF(EXISTS "/etc/debian_version")