[Kst] Re: cmake

Peter Kümmel syntheticpp at gmx.net
Fri Feb 18 22:26:49 CET 2011


On 18.02.2011 21:46, Matthew D Truch wrote:
> I'm working on packaging kst2 on Fedora with cmake.
>
> kst's cmake does seem to honor the -DCMAKE_INSTALL_PREFIX:PATH= option,
> where I could adjust the prefix of installation.

Yes, CMAKE_INSTALL_PREFIX is only overwritten when you set kst_install_prefix:

if(kst_install_prefix)
	set(CMAKE_INSTALL_PREFIX ${kst_install_prefix} CACHE PATH "User's choice for install prefix" FORCE)
	set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
endif()


>
> However, it doesn't honor the -DCMAKE_INSTALL_LIBDIR:PATH= (and related)
> options.  On Fedora, 64 bit systems (which can also run 32 bit apps)
> install libraries in /usr/lib64 to allow for parallel installation of the
> 32-bit libraries in /usr/lib.  Can the cmake rules be modified to honor
> this option?

CMAKE_INSTALL_LIBDIR isn't overwritten, so if CMAKE_INSTALL_LIBDIR is supported
by cmake it should work. If CMAKE_INSTALL_LIBDIR isn't supported we could add it
or maybe kst_install_libdir?

Peter


More information about the Kst mailing list