[cmake-developers] [CMake 0015322]: Double backslash to escape '#' in CMAKE_CXX_FLAGS no longer works
Mantis Bug Tracker
mantis at public.kitware.com
Mon Dec 22 11:55:16 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15322
======================================================================
Reported By: Braden McDaniel
Assigned To:
======================================================================
Project: CMake
Issue ID: 15322
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-12-22 11:55 EST
Last Modified: 2014-12-22 11:55 EST
======================================================================
Summary: Double backslash to escape '#' in CMAKE_CXX_FLAGS no
longer works
Description:
In 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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-12-22 11:55 Braden McDanielNew Issue
======================================================================
More information about the cmake-developers
mailing list