MantisBT - CMake
View Issue Details
0014305CMakeDocumentationpublic2013-07-23 18:202013-12-02 08:51
sleske 
Brad King 
normalminorN/A
closedfixed 
CMake 2.8.11 
CMake 2.8.12CMake 2.8.12 
0014305: Variable CMAKE_<LANG>_FLAGS is not documented
The CMake docs document the variables CMAKE_<LANG>_FLAGS_{DEBUG, MINSIZEREL, RELEASE, RELWITHDEBINFO}. However, CMAKE_<LANG>_FLAGS is not documented, even though it's available (and useful). This should be changed.

Patch with proposal for the docs:

--- cmDocumentVariables.cxx
+++ cmDocumentVariables.cxx-2
@@ -1562,6 +1562,12 @@
      "Variables for Languages");
 
   cm->DefineProperty
+ ("CMAKE_<LANG>_FLAGS", cmProperty::VARIABLE,
+ "Flags for all build types.",
+ "<LANG> flags used regardless of the value of CMAKE_BUILD_TYPE.",false,
+ "Variables for Languages");
+
+ cm->DefineProperty
     ("CMAKE_<LANG>_FLAGS_DEBUG", cmProperty::VARIABLE,
      "Flags for Debug build type or configuration.",
      "<LANG> flags used when CMAKE_BUILD_TYPE is Debug.",false,

No tags attached.
Issue History
2013-07-23 18:20sleskeNew Issue
2013-07-24 10:32Brad KingNote Added: 0033587
2013-07-24 10:32Brad KingAssigned To => Brad King
2013-07-24 10:32Brad KingStatusnew => resolved
2013-07-24 10:32Brad KingResolutionopen => fixed
2013-07-24 10:32Brad KingFixed in Version => CMake 2.8.12
2013-07-24 10:32Brad KingTarget Version => CMake 2.8.12
2013-12-02 08:51Robert MaynardNote Added: 0034654
2013-12-02 08:51Robert MaynardStatusresolved => closed

Notes
(0033587)
Brad King   
2013-07-24 10:32   
Applied, thanks:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=41bb95fc [^]
(0034654)
Robert Maynard   
2013-12-02 08:51   
Closing resolved issues that have not been updated in more than 4 months.