[cmake-developers] [CMake 0015239]: Escape %3B in preprocessor definitions

Mantis Bug Tracker mantis at public.kitware.com
Tue Nov 11 06:53:45 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15239 
====================================================================== 
Reported By:                DavidSto
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15239
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-11-11 06:53 EST
Last Modified:              2014-11-11 06:53 EST
====================================================================== 
Summary:                    Escape %3B in preprocessor definitions
Description: 
Bug fix:
http://www.cmake.org/pipermail/cmake-commits/2013-April/014836.html
(Escape ; as %3B in preprocessor definitions - replace ; with %3B) 
breaks the preprocessor definitions in Visual Studio 2012 (VS11)

It generates one line instead line breaks.
For example: "NDEBUG%3BwxDEBUG_LEVEL=0%3BFULLVERSION" instead of
NDEBUG
wxDEBUG_LEVEL=0
FULLVERSION
(with line breaks)

Steps to Reproduce: 
set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}
"wxDEBUG_LEVEL=0;FULLVERSION")
set(CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE}
"wxDEBUG_LEVEL=0;FULLVERSION")
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-11-11 06:53 DavidSto       New Issue                                    
======================================================================



More information about the cmake-developers mailing list