[cmake-developers] [CMake 0015127]: command line CXX_FLAG settings overridden by settings in system-wide .cmake files
Mantis Bug Tracker
mantis at public.kitware.com
Wed Sep 3 11:08:10 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15127
======================================================================
Reported By: René J.V. Bertin
Assigned To:
======================================================================
Project: CMake
Issue ID: 15127
Category: CMake
Reproducibility: always
Severity: tweak
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-09-03 17:08 CEST
Last Modified: 2014-09-03 17:08 CEST
======================================================================
Summary: command line CXX_FLAG settings overridden by
settings in system-wide .cmake files
Description:
KDE defines a number of compiler options that are (supposedly) required but that
include optimisation options. These settings are defined in system-wide .cmake
files like FindKDE4Internal.cmake and get applied *after* user-specified
settings have been applied. They even seem to override tweaks made directly in
CMakeCache.txt (to CMAKE_CXX_FLAGS_RELEASE or _RELWITHDEBINFO).
Even if user-specified compiler flags do make it to the list in the generated
*.make files, the KDE/system-defined options are *appended* to the list, causing
-O2 to override -O3 or -g -g3.
Is it possible to specify the KDE/system options in such a way that they appear
at the start of the options list in the *.make files?
Steps to Reproduce:
N/A
Additional Information:
Not really a bug, more a question and possibly a feature request.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-09-03 17:08 René J.V. BertinNew Issue
======================================================================
More information about the cmake-developers
mailing list