[cmake-developers] [CMake 0012594]: Codeblocks generator ignores CMP0005

Mantis Bug Tracker mantis at public.kitware.com
Mon Nov 28 10:34:26 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12594 
====================================================================== 
Reported By:                David C. Lonie
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12594
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-11-28 10:34 EST
Last Modified:              2011-11-28 10:34 EST
====================================================================== 
Summary:                    Codeblocks generator ignores CMP0005
Description: 
I originally submitted this bug to QtCreator, and was referred here. For
reference:

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-6479

I have the snippet:

# define TESTDATADIR for tests that need input files                            
                                                                                
                                                                          
cmake_policy(SET CMP0005 NEW) # needed for line below (escapes value)           
                                                                                
                                                                          
add_definitions( -DTESTDATADIR="${CMAKE_SOURCE_DIR}/tests/sampledata/")

and the following line is generated in the Codeblocks file:

<Add option="-DTESTDATADIR="/tmp/XtalOpt/tests/sampledata/"" />

which does not escape the internal quotes.

Steps to Reproduce: 
Clone the repository at http://github.com/dlonie/XtalOpt, and run cmake with
-DBUILD_TESTS=true using the codeblocks generator.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-28 10:34 David C. Lonie New Issue                                    
======================================================================




More information about the cmake-developers mailing list