[cmake-developers] [CMake 0014851]: a fast eval

Mantis Bug Tracker mantis at public.kitware.com
Sun Mar 30 11:49:56 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14851 
====================================================================== 
Reported By:                toeb
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14851
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-03-30 11:49 EDT
Last Modified:              2014-03-30 11:49 EDT
====================================================================== 
Summary:                    a fast eval
Description: 
It would be very nice if cmake had a native eval function which would take a
string and execute it as cmake.  using the clutch 
create include file
write include file
include include file
delete include file

is very cumbersome

having eval would allow calling functions dynamically much easier.
ie
function(someUnknownName)
eval("someUnknownName(hello)")

another create addition would be allowing dynamic function calls 
function(fu)
message(hello)
endfunction()
set(func fu)
${func}()

I thin the latter feature would however require an overhaul of the execution
process.


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-30 11:49 toeb           New Issue                                    
======================================================================



More information about the cmake-developers mailing list