invitation: try compiling kdelibs using cmake

Brad King brad.king at kitware.com
Sat Jan 28 00:12:22 CET 2006


>>>First, does cmake have an equivalent to libtool's -no-undefined?  ie,
>>>kde has some places where they can say, in the LDFLAGS for a target,
>>>"this library should build without any missing or indirect symbols".
>>
>>You can use CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS to adjust
>>these settings.
> 
> OK.  I was hoping for something more part-of-cmake to hide the
> complexity of such things (since it needs to be set differently per-os
> and per-target) but for now we can hack it and hope for the best.  :)

You can get the per-target part of that right now:

SET_TARGET_PROPERTIES(mylib PROPERTIES LINK_FLAGS -no-undefined)

As far as per-os you'll still have to test the platform before adding 
the flag with the above command.  We've talked about having a mapping of 
generic feature names (warning level, optimization level, etc.) to 
specific flags on each platform but it has not yet been implemented.

-Brad


More information about the Kde-buildsystem mailing list