View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011845CMakeCMakepublic2011-02-11 10:322012-11-05 14:32
ReporterMatt Darland 
Assigned ToDavid Cole 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product Version 
Target VersionFixed in VersionCMake 2.8.9 
Summary0011845: Add an EVAL command to evaluate a string as a CMake script
DescriptionAdd an EVAL command that evaluates the string passed in as a CMake script, within the same environment closure as the caller.

Similar to the INSTALL(SCRIPT), but run at CMake evaluation instead of install time.


Motivation: I'd like to write a macro similar to:
#-- LIST_APPLY(src fn)
#-- Calls command in ${fn} against each item in src
MACRO(LIST_APPLY src fn)
  FOREACH(_i ${src})
    EVAL("${fn}(${_i}")
  ENDFOREACH()
ENDMACRO()

So I'm not constantly writing boilerplate foreach code
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0004034closedDavid Cole using a variable in the name of a macro. 

  Notes
(0029595)
David Cole (manager)
2012-06-01 11:21

Please see notes in the duplicate "bug" -- we won't be adding this feature to the CMake language.
(0031439)
David Cole (manager)
2012-11-05 14:32

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-02-11 10:32 Matt Darland New Issue
2012-06-01 11:20 David Cole Assigned To => David Cole
2012-06-01 11:20 David Cole Status new => assigned
2012-06-01 11:21 David Cole Note Added: 0029595
2012-06-01 11:21 David Cole Relationship added duplicate of 0004034
2012-06-01 11:21 David Cole Status assigned => resolved
2012-06-01 11:21 David Cole Fixed in Version => CMake 2.8.9
2012-06-01 11:21 David Cole Resolution open => duplicate
2012-11-05 14:32 David Cole Note Added: 0031439
2012-11-05 14:32 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team