View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014584CMakeCMakepublic2013-11-19 15:452016-06-10 14:31
ReporterClinton Stimpson 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0014584: set() accepts invalid curly brace syntax
Descriptiontest.cmake contains:

set(myvalue "hello")
set(ENV{MYVALUE "${myvalue}")

Then I run it:
cmake -P test.cmake

and it doesn't say anything about the missing closing brace around MYVALUE.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0034496)
Brad King (manager)
2013-11-19 15:51

It looks like for the ENV{} syntax CMake blindly strips the last character assuming it is "}":

$ cat env.cmake
set(myvalue "hello")
set(ENV{MYVALUE "${myvalue}")
message("ENV{MYVALU}=[$ENV{MYVALU}]")

$ cmake -P env.cmake
ENV{MYVALU}=[hello]
(0042431)
Kitware Robot (administrator)
2016-06-10 14:29

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
2013-11-19 15:45 Clinton Stimpson New Issue
2013-11-19 15:49 Brad King Summary CMake accepts invalid curly brace syntax => set() accepts invalid curly brace syntax
2013-11-19 15:51 Brad King Note Added: 0034496
2016-06-10 14:29 Kitware Robot Note Added: 0042431
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team