Re: [CMake] A function and its arguments

2016-02-28 Thread Kristian
You were right. Thank you! 2016-02-28 22:12 GMT+01:00 Nils Gladitz : > On 28.02.2016 21:57, Kristian wrote: >> >> [...] >> >> >> test_me(1 2 3) >> >> >> Then I get this output: >> >> >> t

Re: [CMake] A function and its arguments

2016-02-28 Thread Nils Gladitz
On 28.02.2016 21:57, Kristian wrote: [...] test_me(1 2 3) Then I get this output: test_me -> 1 -> 2 -> Number of arguments: 3 -> All arguments: 123 -> 0. argument: 1 -> 1.

[CMake] A function and its arguments

2016-02-28 Thread Kristian
Hey, I have a question. I have read the article about functions: https://cmake.org/cmake/help/v3.0/command/function.html I tried to write myself a very simple function (nothing special) function(test_me add1 add2) message("test_me") message("