summaryrefslogtreecommitdiff
path: root/cmake/modules/FindKolabInternal.cmake
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-13 12:09:43 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-13 12:09:43 (GMT)
commit0eb815b60aa5155ccf3c8baa94b67e3e209d16dc (patch)
tree1223b649e1ee87aecad0f0cc982632e81183f3c7 /cmake/modules/FindKolabInternal.cmake
parent3c887c55d7e9e75295a4e8bc03a7eb379bc748de (diff)
downloadlibkolabxml-0eb815b60aa5155ccf3c8baa94b67e3e209d16dc.tar.gz
Specify search paths for libraries.
This is likely a bug as this shouldn't be necessary.
Diffstat (limited to 'cmake/modules/FindKolabInternal.cmake')
-rw-r--r--cmake/modules/FindKolabInternal.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/modules/FindKolabInternal.cmake b/cmake/modules/FindKolabInternal.cmake
index b187875..6e0c4ca 100644
--- a/cmake/modules/FindKolabInternal.cmake
+++ b/cmake/modules/FindKolabInternal.cmake
@@ -28,6 +28,18 @@ else ()
endif()
endif ()
+#With cmake 2.6 on 64bit the libraries are not correctly detected, which is afaik a bug. Therefore we workaround the issue by providing some hints manually.
+if(FIND_LIBRARY_PATHS)
+ message("FIND_LIBRARY_PATHS specified manually")
+else()
+ set(FIND_LIBRARY_PATHS
+ /usr/lib
+ /usr/lib64
+ /lib
+ /lib64)
+endif()
+message("FIND_LIBRARY_PATHS: ${FIND_LIBRARY_PATHS}")
+
if(KOLAB_LIB_INSTALL_DIR)
message("KOLAB_LIB_INSTALL_DIR specified manually")
else()