Re: [CMake] spaces in generator strings troublesome (Michael Ellery)

2017-11-22 Thread Stefan . Waigand
Hi Michael Ellery thank you for your reply. > perhaps handle arguments as an array variable in bash - it?s a > slightly saner way to deal with args with spaces: > > CMDLINE=(. -G"Unix Makefiles") && cmake "${CMDLINE[@]}? Well i already got it working in bash when i wrote that. I have the para

Re: [CMake] spaces in generator strings troublesome (Konstantin Tokarev)

2017-11-22 Thread Stefan . Waigand
Hello Konstantin Tokarev, thank you for your answer. > Just write your scripts in decent language Well, i know, there are more sophisticated languages than bash. But in our environment here unfortunately there are reasons why we cannot use another language. Please do not let us discuss why. M

Re: [CMake] spaces in generator strings troublesome

2017-11-10 Thread Michael Ellery
> On Nov 10, 2017, at 6:49 AM, stefan.waig...@continental-corporation.com wrote: > > Hello, > > the usual way to pass a generator string to the cmake executable on the > command line is: > cmake . -G"Unix Makefiles" > > But when i have some bash scripting around it and try to hold the

Re: [CMake] spaces in generator strings troublesome

2017-11-10 Thread Konstantin Tokarev
10.11.2017, 17:59, "stefan.waig...@continental-corporation.com" : > Hello, > > the usual way to pass a generator string to the cmake executable on the > command line is: >         cmake . -G"Unix Makefiles" > > But when i have some bash scripting around it and try to hold the command > line ar

[CMake] spaces in generator strings troublesome

2017-11-10 Thread Stefan . Waigand
Hello, the usual way to pass a generator string to the cmake executable on the command line is: cmake . -G"Unix Makefiles" But when i have some bash scripting around it and try to hold the command line arguments in a variable, the trouble begins... export CMDLINE=". -G\"Unix Makefiles\