[cmake-developers] [CMake 0015284]: /wd flags in source COMPILE_FLAGS replace /wd flags from other sources in Visual Studio generator

Mantis Bug Tracker mantis at public.kitware.com
Thu Dec 4 14:33:49 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15284 
====================================================================== 
Reported By:                Braden McDaniel
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15284
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-12-04 14:33 EST
Last Modified:              2014-12-04 14:33 EST
====================================================================== 
Summary:                    /wd flags in source COMPILE_FLAGS replace /wd flags
from other sources in Visual Studio generator
Description: 
If /wdXXXX flags (i.e., flags to disable specific warnings) are added via the
source property COMPILE_FLAGS, these flags replace (rather than complement) any
/wdXXXX flags added from other sources (e.g., the CMAKE_CXX_FLAGS variable or
the directory COMPILE_FLAGS property).

This is the case, at least, when using the Visual Studio 2013 generator.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-12-04 14:33 Braden McDanielNew Issue                                    
======================================================================



More information about the cmake-developers mailing list