MantisBT - CMake  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0014265 | CMake | CMake | public | 2013-07-03 08:24 | 2013-12-02 08:51 | 
  | 
| Reporter | ycollet |   | 
| Assigned To | Brad King |   | 
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | closed | Resolution | fixed |   | 
| Platform | x86 | OS | Windows | OS Version | 7 64 bits | 
| Product Version | CMake 2.8.11 |   | 
| Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 |   | 
  | 
| Summary | 0014265: ExternalProject documentation missing for chaining multiple commands in one step | 
| Description | In 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 | 
| Steps To Reproduce |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | related to  | 0014266 | closed  | Brad King  | cmake configure step in ExternalProject_Add makes Visual studio stops  |  
  | 
| Attached Files |  | 
  | 
| 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 | bug_revision_view_page.php?bugnote_id=33509#r1213 | 
| 2013-12-02 08:51 | Robert Maynard | Note Added: 0034638 |  | 
| 2013-12-02 08:51 | Robert Maynard | Status | resolved => closed | 
	| 
		Notes	 | 
	
		 
	 | 
	
		
		
			| 
				(0033476)
			 | 
		 
		
			| 
				Brad King   
			 | 
		 
		
			| 
				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   
			 | 
		 
		
			| 
				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   
			 | 
		 
		
			
				2013-07-08 11:46   
				 (edited on: 2013-07-08 11:59)			 | 
		 
		 
	 | 
	
		
	 | 
	
		 
	 | 
	
		
		
			| 
				(0034638)
			 | 
		 
		
			| 
				Robert Maynard   
			 | 
		 
		
			| 
				2013-12-02 08:51   
							 | 
		 
		 
	 | 
	
		
		
			| 
				Closing resolved issues that have not been updated in more than 4 months.			 | 
		 
		 
	 |