[CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Martin Mitáš
Hello, I'm trying to pass multiple options from outside to a command in add_custom_target() or add_custom_command(). I am new to CMake and I don't know whether the observed behavior is bug or I do it in a wrong way. I am doing all this with CMake 3.0 on Windows within MSYS environment if it

Re: [CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Kornel Benko
Am Samstag, 28. Juni 2014 um 12:06:56, schrieb Martin Mitáš m...@morous.org Hello, I'm trying to pass multiple options from outside to a command in add_custom_target() or add_custom_command(). I am new to CMake and I don't know whether the observed behavior is bug or I do it in a wrong

Re: [CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Hendrik Sattler
On 28. Juni 2014 18:00:52 MESZ, Kornel Benko kor...@lyx.org wrote: Am Samstag, 28. Juni 2014 um 12:06:56, schrieb Martin Mitáš m...@morous.org Hello, I'm trying to pass multiple options from outside to a command in add_custom_target() or add_custom_command(). I am new to CMake and I

Re: [CMake] Passing options into COMMAND inside of add_custom_target() or add_custom_command()

2014-06-28 Thread Kornel Benko
Am Samstag, 28. Juni 2014 um 19:21:50, schrieb Hendrik Sattler p...@hendrik-sattler.de So 'ls' got '-l -h' as one paramater. I would use 1.) -DMYTOOL_FLAGS=-lh or 2.) -DMYTOOL_FLAGS=-l;-h Or maybe escaping on the shell as -DMYTOOL_FLAGS=-l -h also works? This is identical to