View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015322CMakeCMakepublic2014-12-22 11:552015-05-04 09:05
ReporterBraden McDaniel 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake 3.1 
Target VersionFixed in Version 
Summary0015322: Double backslash to escape '#' in CMAKE_CXX_FLAGS no longer works
DescriptionIn versions of CMake prior to 3.1.0, this worked:

  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-\\#pragma-messages")

In CMake 3.1.0, that no longer works; this, however, does:

  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-#pragma-messages")

I'm not sure if this is a deliberate change or not; but it's a slightly annoying break with backward compatibility.
TagsNo tags attached.
Attached Files

 Relationships
related to 0015070closedBrad King CMake doesn't escape # properly in add_compile_options with Makefile generator 

  Notes
(0037507)
Brad King (manager)
2014-12-22 13:22

This is because CMake now correctly escapes # itself. See 0015070:0036604.
(0037522)
Brad King (manager)
2014-12-23 08:28

I've updated the 3.1 release notes to point out this behavior change:

 Help: Add 3.1 release note about '#' escaping in Makefiles
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8d70a914 [^]
(0038708)
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-22 11:55 Braden McDaniel New Issue
2014-12-22 13:21 Brad King Relationship added related to 0015070
2014-12-22 13:22 Brad King Note Added: 0037507
2014-12-22 13:23 Brad King Status new => resolved
2014-12-22 13:23 Brad King Resolution open => no change required
2014-12-23 08:28 Brad King Note Added: 0037522
2015-05-04 09:05 Robert Maynard Note Added: 0038708
2015-05-04 09:05 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team