View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014265CMakeCMakepublic2013-07-03 08:242013-12-02 08:51
Reporterycollet 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformx86OSWindowsOS Version7 64 bits
Product VersionCMake 2.8.11 
Target VersionCMake 2.8.12Fixed in VersionCMake 2.8.12 
Summary0014265: ExternalProject documentation missing for chaining multiple commands in one step
DescriptionIn the CONFIGURE_COMMAND option, I added several commands in a row. Like:

CONFIGURE_COMMAND cmd1 && cmd2 && cmd3

But, due to a problem with visual studio, I needed to set CONFIGURE_LOG to 1.
But after setting CONFIGURE_LOG to 1, the CONFIGURE_COMMAND doesn't accept anymore composed command. I am now stuck to single command:

CONFIGURE_COMMAND cmd1
TagsNo tags attached.
Attached Files

 Relationships
related to 0014266closedBrad King cmake configure step in ExternalProject_Add makes Visual studio stops 

  Notes
(0033476)
Brad King (manager)
2013-07-03 16:52

You'll have to work around this by wrapping up your commands in a .cmd script or something. The logging mechanism works by wrapping the commands up in cmake scripts with execute_process calls, and those don't support shell operators. I wouldn't claim shell operators like && are officially supported in the *_COMMAND options in the first place. We can update the documentation to say so.
(0033488)
ycollet (reporter)
2013-07-05 02:40

Thanks for this information.

It should be nice to be able to add composed commands in *_COMMAND.

Do I fill a request for this ?

YC
(0033509)
Brad King (manager)
2013-07-08 11:46
edited on: 2013-07-08 11:59

Actually we do have a way to compose commands but forgot to document it:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=93c11657 [^]

(0034638)
Robert Maynard (manager)
2013-12-02 08:51

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

 Issue History
Date Modified Username Field Change
2013-07-03 08:24 ycollet New Issue
2013-07-03 16:52 Brad King Note Added: 0033476
2013-07-03 16:54 Brad King Relationship added related to 0014266
2013-07-05 02:40 ycollet Note Added: 0033488
2013-07-08 11:46 Brad King Note Added: 0033509
2013-07-08 11:49 Brad King Assigned To => Brad King
2013-07-08 11:49 Brad King Status new => resolved
2013-07-08 11:49 Brad King Resolution open => fixed
2013-07-08 11:49 Brad King Fixed in Version => CMake 2.8.12
2013-07-08 11:49 Brad King Target Version => CMake 2.8.12
2013-07-08 11:49 Brad King Summary ExternalProject_Add with CONFIGURE_LOG set to 1 doesn't accept composed command in CONFIGURE_COMMAND => ExternalProject documentation missing for chaining multiple commands in one step
2013-07-08 11:59 Brad King Note Edited: 0033509
2013-12-02 08:51 Robert Maynard Note Added: 0034638
2013-12-02 08:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team