MantisBT - CMake
View Issue Details
0014051CMakeCMakepublic2013-03-29 15:282016-06-10 14:31
Dave Abrahams 
Kitware Robot 
normalfeaturealways
closedmoved 
MacOS X10.8
CMake 2.8.10.2 
 
0014051: Add "cmake -E script <cmake-code>"
I find myself writing tiny scripts to do something that only "script mode” is capable of. For example,

cmake_minimum_required(VERSION 2.8)
configure_file(${SOURCE_DIR}/LitReTemplate.cmake ${OUTPUT} @ONLY)

And then, to invoke this as a build action, I need to figure out how to properly quote ${SOURCE_DIR} et all as -D arguments on the cake command line.
 
I really want to be able to write

  cmake -E script "configure_file(${SOURCE_DIR}/LitReTemplate.cmake ${OUTPUT} @ONLY)”

It would be so much more direct.
No tags attached.
Issue History
2013-03-29 15:28Dave AbrahamsNew Issue
2013-03-29 15:40Brad KingSeverityminor => feature
2013-03-29 15:40Brad KingStatusnew => backlog
2013-03-29 15:40Brad KingSummary-E capabilities frustratingly limited => Add "cmake -E script <cmake-code>"
2016-06-10 14:28Kitware RobotNote Added: 0042257
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042257)
Kitware Robot   
2016-06-10 14:28   
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.