View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015284CMakeCMakepublic2014-12-04 14:332015-05-04 09:05
ReporterBraden McDaniel 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 3.0.2 
Target VersionCMake 3.2Fixed in VersionCMake 3.2 
Summary0015284: /wd flags in source COMPILE_FLAGS replace /wd flags from other sources in Visual Studio generator
DescriptionIf /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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0037390)
Brad King (manager)
2014-12-04 15:42

It looks like VS 9 and below combine the flags automatically, but for VS >= 10 we need to add an explicitly reference to get the flags inherited. This should fix it:

 VS: Inherit target-level "-wd" flags in source files
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f545eb0b [^]
(0038693)
Robert Maynard (manager)
2015-05-04 09:05

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-12-04 14:33 Braden McDaniel New Issue
2014-12-04 15:42 Brad King Note Added: 0037390
2014-12-04 15:43 Brad King Assigned To => Brad King
2014-12-04 15:43 Brad King Status new => assigned
2014-12-04 15:43 Brad King Target Version => CMake 3.2
2014-12-08 08:56 Brad King Status assigned => resolved
2014-12-08 08:56 Brad King Resolution open => fixed
2014-12-08 08:56 Brad King Fixed in Version => CMake 3.2
2015-05-04 09:05 Robert Maynard Note Added: 0038693
2015-05-04 09:05 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team