View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000882CMakeCMakepublic2004-05-26 22:152007-08-28 13:09
ReporterEric Wing 
Assigned To 
PriorityurgentSeverityfeatureReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000882: Broken behavior with quotes between 1.8.3 and 2.0beta
DescriptionBehavior with quotes seems to have changed between 1.8.3 and 2.0beta. The ARGS line used to work in 1.8.3, but no longer works in 2.0beta:

ADD_CUSTOM_COMMAND(
    OUTPUT ${wxLua_BINARY_DIR}/Import/wxLuaWrap${LUAWRAP_NAME}.hpp
    DEPENDS ${LUA_PROGRAM} ${wxLua_SOURCE_DIR}/Import/wxLuaWrap.i
        ${wxLua_SOURCE_DIR}/Import/wxLuaWrap.lua
        ${wxLua_SOURCE_DIR}/Import/Overrides.hpp
    COMMAND ${LUA_PROGRAM}
    ARGS -e"${LUAWRAP_MODE} inpath='${wxLua_SOURCE_DIR}/Import/' outpath='${wxLua_BINARY_DIR}/Import/'" ${wxLua_SOURCE_DIR}/Import/wxLuaWrap.lua
)

Notice the double quote after -e and the very last double quote (after Import/').

In 1.8.3, these quotes were passed to the command line (expected behavior). But in 2.0beta, the quotes disappear causing my command to fail.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0001152)
Brad King (manager)
2004-06-01 10:14

This code was actually only working before due to a bug in the 1.8.3 parser. If you want double-quotes to make it through the cmake command parsing, you have to escape them with a backslash.

 Issue History
Date Modified Username Field Change
2007-08-28 13:08 Zack Galbreath Note Deleted: 0008290
2007-08-28 13:08 Zack Galbreath Assigned To Jeff Lee =>
2007-08-28 13:08 Zack Galbreath Status new => closed
2007-08-28 13:08 Zack Galbreath Resolution reopened => no change required
2007-08-28 13:08 Zack Galbreath Summary Goodsite => Broken behavior with quotes between 1.8.3 and 2.0beta
2007-08-28 13:09 Zack Galbreath Project InfoVis => CMake
2007-08-28 13:09 Zack Galbreath Category CPack => CMake


Copyright © 2000 - 2018 MantisBT Team