Re: [CMake] Troubles with small CMakeLists.txt

2019-06-04 Thread Stephan.Szabo
Hi, Looking at the cmake there, your bsBuildLibExamples macro starts off by doing set(WITH_LIB_${lib_upper}_EXAMPLES "") but lib_upper isn't set to match the new value of lib until later inside the foreach. So it seems like you're resetting the value of the previous iteration. Moving the

Re: [CMake] Invalid escape sequence in macro

2019-03-11 Thread Stephan.Szabo
I would expect that you're running into a consequence of: "In a function, ARGN, ARGC, ARGV and ARGV0, ARGV1, ... are true variables in the usual CMake sense. In a macro, they are not, they are string replacements much like the C preprocessor would do with a macro." So I would expect the

[CMake] Ninja generator RSP handling on Windows

2019-01-07 Thread Stephan.Szabo
Hello, We have a cross-compilation toolchain we're using on Windows with Ninja (and Visual Studio) that is primarily built upon Clang, however our "-ar" tool is built expecting RSP files with line break delimiters. We notice that the Ninja generator explicitly switches to the space based RSP