KDE/kdelibs/cmake/modules

Alexander Neundorf neundorf at kde.org
Wed Aug 6 22:44:05 CEST 2008


SVN commit 843268 by neundorf:

-initialize LIB_SUFFIX to 64 (or 32) if kdelibs have been installed to lib64 (or lib32)

Does anybody think this might be a bad idea or cause problems under some weird circumstances ?

Alex

CCMAIL: kde-buildsystem at kde.org



 M  +13 -1     FindKDE4Internal.cmake  


--- trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake #843267:843268
@@ -534,9 +534,21 @@
 # info from "http://www.linuxfromscratch.org/hlfs/view/unstable/glibc/chapter02/pie.html"
 option(KDE4_ENABLE_FPIE  "Enable platform supports PIE linking")
 
-set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
+# If we are building ! kdelibs, check where kdelibs are installed.
+# If they are installed in a directory which contains "lib64", we default to "64" for LIB_SUFFIX,
+# so the current project will by default also go into lib64.
+# The same for lib32. Alex
+set(_Init_LIB_SUFFIX "")
+if ("${KDE4_LIB_DIR}" MATCHES lib64)
+   set(_Init_LIB_SUFFIX 64)
+endif ("${KDE4_LIB_DIR}" MATCHES lib64)
+if ("${KDE4_LIB_DIR}" MATCHES lib32)
+   set(_Init_LIB_SUFFIX 32)
+endif ("${KDE4_LIB_DIR}" MATCHES lib32)
 
+set(LIB_SUFFIX "${_Init_LIB_SUFFIX}" CACHE STRING "Define suffix of directory name (32/64)" )
 
+
 ########## the following are directories where stuff will be installed to  ###########
 #
 # this has to be after find_xxx() block above, since there KDELibsDependencies.cmake is included


More information about the Kde-buildsystem mailing list