diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-28 09:29:58 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-03-28 09:29:58 (GMT) |
commit | d85f7b06ea265f7814bea6160ce25a814616e2b4 (patch) | |
tree | 9ea3851f0dca6afc2c5e71b784b164c14e746aaa | |
parent | 85f98b950f43ab5df03fb9d6655f4c9d736ac756 (diff) | |
download | libkolabxml-d85f7b06ea265f7814bea6160ce25a814616e2b4.tar.gz |
Clause the KOLAB_LIB_INSTALL_DIR to recognize -DLIB_INSTALL_DIR
-rw-r--r-- | cmake/modules/FindKolabInternal.cmake | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/cmake/modules/FindKolabInternal.cmake b/cmake/modules/FindKolabInternal.cmake index fb9d6a5..19ba440 100644 --- a/cmake/modules/FindKolabInternal.cmake +++ b/cmake/modules/FindKolabInternal.cmake @@ -10,19 +10,23 @@ # # KOLAB_INSTALL_DIRECTORIES contains the determined install directories and should be used with install commands -get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS) - -if (${LIB64} STREQUAL "TRUE") - find_path(LIB32FOUND "${CMAKE_INSTALL_PREFIX}/lib32") - find_path(LIB64FOUND "${CMAKE_INSTALL_PREFIX}/lib64") - if (LIB64FOUND) - set(LIBSUFFIX 64) +if (LIB_INSTALL_DIR) + set(KOLAB_LIB_INSTALL_DIR ${LIB_INSTALL_DIR}) +else () + get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS) + + if (${LIB64} STREQUAL "TRUE") + find_path(LIB32FOUND "${CMAKE_INSTALL_PREFIX}/lib32") + find_path(LIB64FOUND "${CMAKE_INSTALL_PREFIX}/lib64") + if (LIB64FOUND) + set(LIBSUFFIX 64) + else() + set(LIBSUFFIX "") + endif() else() set(LIBSUFFIX "") endif() -else() - set(LIBSUFFIX "") -endif() +endif () if(KOLAB_LIB_INSTALL_DIR) message("KOLAB_LIB_INSTALL_DIR specified manually") |