The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11845 
====================================================================== 
Reported By:                Matt Darland
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11845
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-02-11 17:32 WAST
Last Modified:              2011-02-11 17:32 WAST
====================================================================== 
Summary:                    Add an EVAL command to evaluate a string as a CMake
script
Description: 
Add 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

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-11 17:32 Matt Darland   New Issue                                    
======================================================================

_______________________________________________
cmake-developers mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to