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.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to