Re: [CMake] Spaces in a command

2014-07-25 Thread Iosif Neitzke
"If VERBATIM is given then all arguments to the commands will be escaped properly for the build tool so that the invoked command receives each argument unchanged. Note that one level of escapes is still used by the CMake language processor before add_custom_command even sees the arguments. Use of V

[CMake] Spaces in a command

2014-07-25 Thread Bill Newcomb
I want to add stuff to a custom command based on some definition: cmake_minimum_required(VERSION 2.6) set(DO_RELAX 1) if(DO_RELAX) set(OR_RELAX "|| echo \"no big deal\"") else() set(OR_RELAX "") endif() add_custom_command(OUTPUT foo COMMAND generate-foo ${OR_RELAX}) add_custom_target(do-