[CMake] CDash suggestions

2018-12-10 Thread Donald MacQueen [|]
I just installed CDash and I have a few suggestions about improving the documentation. Is this the place for it? -- Donald [|] A bad day in [] is better than a good day in {}. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/C

Re: [CMake] Can CXX_CLANG_TIDY use .clang-tidy file?

2018-12-10 Thread Bill Hoffman via CMake
On 12/8/2018 7:47 PM, Mateusz Loskot wrote: Hi, Am I correct clang-tidy run via CXX_CLANG_TIDY ignores .clang-tidy configuration file? I've tried number of ways to help it find the file, i.e. copied the file to binary directories from where it seems run via usr/local/bin/cmake -E __run_co_comp

Re: [CMake] [cmake-developers] [MSVC] Setting warning level on target feels like long-time bug

2018-12-10 Thread Rob Boehne
I’m going to chime in here and say that IMO, it really isn’t the build system generator’s responsibility to set a warning level. CMake maintainers should consider these questions when deciding on what to do with this issue: *) Does CMake set the compiler’s warning flags on all platforms? *) Ho

Re: [CMake] Correct way to specify multiple build configurations for single config generators?

2018-12-10 Thread Zaak Beekman
Hi Craig, et al, Craig, once again, thank you for writing such a great reference and learning book! I have a few responses inline below. On Mon, Dec 10, 2018 at 6:34 AM Craig Scott wrote: > This is only going to be an issue for single-configuration generators. For > multi-config generators, you

Re: [CMake] Testing our CMake Modules

2018-12-10 Thread Kai Wolf
They (Kitware) typically write custom .cmake files to test the function/macro under test coupled together with a CMakeLists.txt file and/or a small C/C++ implementation file. Look here [1] for some examples, for instance CMake/Tests/MacroTest. Greetings, Kai http://kai-wolf.me http://effectiv

[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 s

Re: [CMake] [MSVC] Setting warning level on target feels like long-time bug

2018-12-10 Thread Brad King via CMake
On 12/9/18 8:09 AM, Marc CHEVRIER wrote: > The real question is how to manage cleanly target specific flags > overriding global or directory defaults? All the optimization and warning flags currently handled by `CMAKE__FLAGS[_]` need to have abstractions introduced (e.g. target properties or somet

Re: [CMake] Correct way to specify multiple build configurations for single config generators?

2018-12-10 Thread Craig Scott
On Mon, Dec 10, 2018 at 1:37 PM Zaak Beekman wrote: > I have been reading the *excellent* book "Professional CMake". The author, > Craig Scott, recommends the following best practices: > >- check the existence of `CMAKE_CONFIGURATION_TYPES` and only adding >or pruning configurations if it

Re: [CMake] dependencies of cross compiliations

2018-12-10 Thread Craig Scott
On Mon, Dec 10, 2018 at 7:57 PM Eric Noulard wrote: > > Le dim. 9 déc. 2018 à 12:24, Craig Scott a > écrit : > >> On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki >> wrote: >> >>> > Am 27.11.2018 um 19:55 schrieb Eric Noulard : >>> > >>> > My assumption are: >>> > a) when you cross-compile your

Re: [CMake] dependencies of cross compiliations

2018-12-10 Thread Eric Noulard
Le dim. 9 déc. 2018 à 12:24, Craig Scott a écrit : > On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki > wrote: > >> > Am 27.11.2018 um 19:55 schrieb Eric Noulard : >> > >> > My assumption are: >> > a) when you cross-compile your build is a "whole" and you shouldn't >> have to setup some superbui