LIBRARY_TYPE in ECMQtFramework.cmake

Alexander Neundorf neundorf at kde.org
Mon May 7 20:01:27 UTC 2012


Hi,

in ECMQtFramework.cmake there is the line

set(LIBRARY_TYPE SHARED)

which is used later on in the libraries e.g. like this:

add_library(itemmodels ${LIBRARY_TYPE} ${itemmodels_SRCS})

What is this good for ?
It is not in the cache, so it is hardcoded.

To switch between shared and static libs, there is the cmake variable 
BUILD_SHARED_LIBS, which can be set to TRUE or FALSE depending on what is 
wanted (defaults to not set i.e. to static libs).

So, is the intent to have it switchable (then BUILD_SHARED_LIBS should be 
preset to TRUE in the cache), or is the reason to hardcode it to SHARED ?

Beside that, do we actually (want to) support building static libs ?


Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20120507/e88aa2f3/attachment.html>


More information about the Kde-frameworks-devel mailing list