[cmake-developers] [CMake 0014305]: Variable CMAKE_<LANG>_FLAGS is not documented

Mantis Bug Tracker mantis at public.kitware.com
Tue Jul 23 18:20:36 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14305 
====================================================================== 
Reported By:                sleske
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14305
Category:                   Documentation
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-24 00:20 CEST
Last Modified:              2013-07-24 00:20 CEST
====================================================================== 
Summary:                    Variable CMAKE_<LANG>_FLAGS is not documented
Description: 
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,


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-24 00:20 sleske         New Issue                                    
======================================================================




More information about the cmake-developers mailing list