RFC: do not overwrite customs CMake flags
Christophe Giboudeaux
cgiboudeaux at gmail.com
Fri Sep 25 21:39:07 CEST 2009
Hello,
When building any module which includes KDE4Internals, the custom CMake flags
are overwritten by the ones in this file which doesn't seem correct.
Example: If I set :
export CMAKE_CXX_FLAGS_DEBUGFULL="-ggdb3 -fno-inline"
or use -DCMAKE_CXX_FLAGS_DEBUGFULL; at compile time, these flags will be
replaced by the ones from FindKde4Internals.cmake:
if (CMAKE_COMPILER_IS_GNUCXX)
[...]
set(CMAKE_CXX_FLAGS_DEBUGFULL "-g3 -fno-inline")
Would it make sense to first check if CMake variables exist before defining
them again ?
Christophe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090925/a70d2135/attachment.sig
More information about the Kde-buildsystem
mailing list