#946: some libraries not found on Ubuntu/Debian

Ubuntu/Debian introduced "multiarch" library directories, which is
unsupported by CMake <= 2.8.10. Add manual search paths as a workaround.
Currently it is only needed for libsvn, but it is needed for any lib
which is converted to the new directory standard.
This commit is contained in:
ThorstenB
2012-12-01 11:00:50 +01:00
parent 59d3d66f91
commit 99cf057906
2 changed files with 27 additions and 4 deletions
+1 -4
View File
@@ -29,10 +29,7 @@ endif(APPLE)
NAMES ${compLib}
HINTS $ENV{LIBSVN_DIR} ${CMAKE_INSTALL_PREFIX} ${MSVC_3RDPARTY_ROOT}/${MSVC_3RDPARTY_DIR}/lib
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
PATHS
/opt/local
/usr/local
/usr
PATHS ${ADDITIONAL_LIBRARY_PATHS}
)
list(APPEND ${libs} ${${compLibName}})