libsuffix with cmake

Alexander Neundorf neundorf at kde.org
Tue Apr 11 19:33:23 CEST 2006


On Tuesday 11 April 2006 18:48, Andras Mantia wrote:
> Hi,
>
>  Many 64bit distributions use lib64 for 64bit libraries and lib for 32
> bit ones. AFAIK there are some using lib32 for 32bit and lib for 64 bit
> ones. Recently I fixed the automake system for KDE 3.5 to detect if
> your distribution is using a suffix or not and use the same for KDE.
> This is partly for consistency and partly because some checks relied on
> the suffix to find their dependencies (for example KDE using lib and
> the OS using lib64 caused the dbus check to fail).

With cmake ?
I don't have a 64bit system here, but I think it checks both versions.
Laurent knows more about this, he has 64bit system available AFAIK.

>  Now with cmake the same problems appears: by default lib is used,
> altough my system uses lib64. Can someone tell me where to fix this in
> the cmake files for KDE? Actually what is needed:
> - automatic detection (default)
> - enabling a suffix selected by the user

In FindKDE4Internal.cmake.
The variable can then be overriden by the user if he directly calls cmake with 
-D<name_of_the_var>=<the_value_he_wants>

Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list