Re: [CMake] CMake: how to use 'for cyclic sentence' in command add_custom_command(...)

2016-04-19 Thread Chuck Atkins
Hi Chao, As Konstantin alluded to, trying to pass "srtingified" shell scripting through the layers of cmake and makefile escaping is bound to be fraught with problems. The necessary escaping will very quickly become unmaintainable. You're really best suited to place these in a separate shell scri

Re: [CMake] CMake: how to use 'for cyclic sentence' in command add_custom_command(...)

2016-04-19 Thread Konstantin Tokarev
19.04.2016, 16:21, "Chaos Zhang" : > Hi, > > I was using 'for cyclic sentence' in command add_custom_command(...), the > content of the CMakeLists.txt as below: > add_custom_command(TARGET temp_target > POST_BUILD > COMMAND for x in

Re: [CMake] CMake: how to use 'for cyclic sentence' in command add_custom_command(...)

2016-04-19 Thread Chuck Atkins
Hi Chao, > I was using 'for cyclic sentence' in command add_custom_command(...), the > content of the CMakeLists.txt as below: > add_custom_command(TARGET temp_target > POST_BUILD > COMMAND for x in a b c\; >

[CMake] CMake: how to use 'for cyclic sentence' in command add_custom_command(...)

2016-04-19 Thread Chaos Zhang
Hi, I was using 'for cyclic sentence' in command add_custom_command(...), the content of the CMakeLists.txt as below: add_custom_command(TARGET temp_target POST_BUILD COMMAND for x in a b c\; do echo $