Re: [CMake] Invalid escape sequence in macro

2019-03-12 Thread Ramold, Felix
akeLists.txt:9 when parsing string In macro: bla bla \& Invalid escape sequence \& Call Stack (most recent call first): CMakeLists.txt:15 (m) -- Configuring incomplete, errors occurred! Regards, Felix -Ursprüngliche Nachricht- Von: stephan.sz...@sony.com [mailto:steph

[CMake] Invalid escape sequence in macro

2019-03-11 Thread Ramold, Felix
Hi, today i ran into an error with escape characters in macros. Is this a known issue? Is this by design? How can I workaround? Code: function(f STRING) message(STATUS ${STRING}) endfunction() macro(m STRING) message(STATUS ${STRING}) endmacro() set(CONTENT "bla bla \/\/")

Re: [CMake] --warn-uninitialized works in only first configuration

2019-02-05 Thread Ramold, Felix
list) also shows this warning. -Ursprüngliche Nachricht- Von: Robert Maynard [mailto:robert.mayn...@kitware.com] Gesendet: Montag, 4. Februar 2019 18:16 An: Ramold, Felix Cc: cmake@cmake.org Betreff: Re: [CMake] --warn-uninitialized works in only first configuration This generally occurs

[CMake] --warn-uninitialized works in only first configuration

2019-02-04 Thread Ramold, Felix
Hi, I configure a project with --warn-uninitialized and get a lot of warnings. I successfully run the build. Then I change any CMakeLists.txt file. I run the build again. CMake checks its dependencies and reconfigures before the actual build. Those warnings (or at least those in the edited

[CMake] Testing our CMake Modules

2018-12-10 Thread Ramold, Felix
We created multiple additional functions for CMake. They became quite a lot, and we need to (unit) test them. There are simple ones, that are only variable bases like: function(join_list LIST GLUE) These can be tested with a custom CMake Script, that checks the results. For this we also wrote a