View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008228CMakeCMakepublic2008-12-04 18:472016-06-10 14:30
Reportermwoehlke 
Assigned ToBill Hoffman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008228: cmake allows creating variables that cannot be dereferenced
DescriptionTest CMakeLists.txt:

set(!BANG wacky CACHE STRING "" FORCE)
set("var with space" wacky CACHE STRING "" FORCE)

Both of these will create entries in the cache. However, as evidenced by:

message(STATUS "This is !BANG: ${!BANG}")
message(STATUS "This is var with space: ${var with space}")

...such variables cannot be expanded (attempting to do so throws an error). CMake should preferably not allow such variables to be created.
Additional InformationI discovered this while implementing a work-around to bug 8226, basically with the autotools-ism 'if ("!${foo}" MATCHES "bar")'. Therefore I would prefer for such variables to remain invalid :-).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0041476)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-12-04 18:47 mwoehlke New Issue
2008-12-15 10:40 Bill Hoffman Status new => assigned
2008-12-15 10:40 Bill Hoffman Assigned To => Bill Hoffman
2016-06-10 14:27 Kitware Robot Note Added: 0041476
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team