[cmake-developers] [CMake 0011712]: add_definitions/COMPILE_DEFINITIONS do not support defines with semicolon

Mantis Bug Tracker mantis at public.kitware.com
Mon Jan 17 06:25:18 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11712 
====================================================================== 
Reported By:                Andreas Pakulat
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11712
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-17 06:25 EST
Last Modified:              2011-01-17 06:25 EST
====================================================================== 
Summary:                    add_definitions/COMPILE_DEFINITIONS do not support
defines with semicolon
Description: 
Trying to add a define which has a semicolon in its text results in completely
broken compiler commandlines with wrong escaping of arguments.

The attached project shows this, there doesn't seem to be a way to escape the
semicolon so that cmake ignores it. CMake always interprets that as a separator
for the list of defines apparently, which then breaks the compile-commandline
due to broken quoting.

I tried this with both gnu makefiles and gcc as well as nmake makefiles and cl,
with the same results.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-17 06:25 Andreas PakulatNew Issue                                    
2011-01-17 06:25 Andreas PakulatFile Added: tst_sep.tar.gz                    
======================================================================




More information about the cmake-developers mailing list