Re: [CMake] support for -fsyntax-only (and generating Qt/KDE's auto-generated content)

2018-10-09 Thread Sylvain Joubert
Are you thinking of tools that are invoked instead of the compiler, like clazy- standalone? I thought about mentioning a potential interest of my idea for using such tools (but forgot in the end). Yes, that and all the other tools supported by CMake as a "pre-command" before the compiler

Re: [CMake] support for -fsyntax-only (and generating Qt/KDE's auto-generated content)

2018-10-09 Thread Sylvain Joubert
I'd also like something like that for another use case of mine which stumble upon the same limitations (compiler checks, linking and Qt generated content). My use case is for static analysis builds. For example, my CI setup has multiple of them including cppcheck, clang-tidy and iwyu through

Re: [cmake-developers] Debugger for CMake

2017-01-30 Thread Sylvain Joubert
Le 30/01/2017 à 17:09, Justin Berger a écrit : a) Is this feature worthwhile for eventual merge into CMake? No doubt! :-) > c) What is the best approach to make this kind of feature appealing to IDE / UI tools which currently work with CMake? If I recall correctly, one of the initial use

[cmake-developers] Disabling leaks check when using Address Sanitizer

2016-12-16 Thread Sylvain Joubert
Hi everyone, I've setup some sanitizer builds on my project and I'd like to have two separate builds for asan and lsan, meaning I want to disable leak detection in the asan build. I've managed to correctly setup the CTEST_MEMORYCHECK_SANITIZER_OPTIONS with "detect_leaks=0" and at runtime

[CMake] Warnings with newer versions of Boost imported targets

2016-11-10 Thread Sylvain Joubert
Hi, I'm using CMake 3.6.3 (so up-to-date version at this point). After updating my Boost libraries to the newest version (1.62 just landed on my Debian testing) I get a bunch of warnings: "Imported targets not available for Boost version 106200" There seems to be a fallback behavior working fine,

[cmake-developers] [PATCH] Help: Fix cmake-server typo and message type consistency

2016-10-21 Thread Sylvain Joubert
Hello, Please find attached a patch that corrects a typo and a inconsistency in a code snippet. The patch is based on the 'release' branch. Regards, Sylvain From c861c3341a59ca635f98e6f56caee7104f16dc32 Mon Sep 17 00:00:00 2001 From: Sylvain Joubert <joubert...@gmail.com> Date: Fri, 21 Oc

[cmake-developers] [PATCH] bash-completion: Fix cmake -E lookup

2016-08-04 Thread Sylvain Joubert
001 From: Sylvain Joubert <joubert...@gmail.com> Date: Thu, 4 Aug 2016 18:59:21 +0200 Subject: [PATCH] bash-completion: Fix cmake -E lookup In case of long ' ' the description text is wrapped and indented on the next line. Avoid taking these lines into account by explicitly requiring

Re: [CMake] GCC: -std=g++14 vs -std=c++14

2016-06-13 Thread Sylvain Joubert
Le 13/06/2016 11:36, Patrick Boettcher a écrit : Hi list, I'm using gcc for a c++14-based project. To have cmake add the corresponding -std=-flag I'm setting set_property(TARGET PROPERTY CXX_STANDARD 14) This makes that when gcc is used cmake adds -std=gnu++14 . How can I make it set

[CMake] CMP0058 warning on configure-time generated source files

2015-10-29 Thread Sylvain Joubert
Hi, In my project I have some source files that are generated at configure time. Much like configure_file but using one execute_process call with an external executable, then a second execute_process with cmake -E copy_if_different to avoid unnecessary rebuild. The generated files (from the build

[cmake-developers] [patch] FindBoost: Mark Boost_LIBRARY_DIR_[RELEASE, DEBUG] cache entries as advanced

2015-05-30 Thread Sylvain Joubert
, here is a patch that marks the new variables as advanced. But, depending on the answer to my history related interrogation it may not be the best patch to fix the issue. Sylvain From feeebe8666883eab6b638ce7771a015ea229d503 Mon Sep 17 00:00:00 2001 From: Sylvain Joubert joubert...@gmail.com Date

[cmake-developers] [patch] Configure some targets with USES_TERMINAL

2015-01-24 Thread Sylvain Joubert
7d786455f5f7c8e63651b8f3d9cbb581970b9e39 Mon Sep 17 00:00:00 2001 From: Sylvain Joubert joubert...@gmail.com Date: Sat, 24 Jan 2015 19:42:31 +0100 Subject: [PATCH] Configure some targets with USES_TERMINAL This will make them use the 'console' pool with the Ninja generator. Impacted targets are: - Built-in targets: install

Re: [CMake] Rename target RUN_TESTS

2015-01-02 Thread Sylvain Joubert
Le 02/01/2015 05:27, Scott Aron Bloom a écrit : Is there a CMake command to rename a target? I don't think you can rename a target. We would like to name it ALL_RUN_TEST However, you can add a custom target that depends on the misnamed one: if(MSVC) add_custom_target(ALL_RUN_TEST

Re: [CMake] Rename target RUN_TESTS

2015-01-02 Thread Sylvain Joubert
Le 02/01/2015 11:43, Sylvain Joubert a écrit : if(MSVC) add_custom_target(ALL_RUN_TEST ALL DEPENDS RUN_TESTS) endif() The ALL dependency should not be there. No need to run the tests at every compilation. This is better: if(MSVC) add_custom_target(ALL_RUN_TEST DEPENDS RUN_TESTS

Re: [cmake-developers] [PATCH] Ninja: Use 'console' pool for CMake re-run if possible

2014-10-03 Thread Sylvain Joubert
Le 03/10/2014 17:41, Matthew Woehlke a écrit : On 2014-10-03 08:56, Brad King wrote: I'll leave that to a follow-up patch if anyone wants to do it. I was sort-of hoping / encouraging that Sylvain might be interested :-). I quickly checked if it is possible. Unlike the rerun target which

[cmake-developers] [PATCH] Ninja: Use 'console' pool for CMake re-run if possible

2014-10-02 Thread Sylvain Joubert
version is 1.5 or greater, then the generator will use the 'console' pool and the build.ninja file requires at least Ninja 1.5 Regards, Sylvain From 5735b36d3c8780da06c9a91b461946a814d4592b Mon Sep 17 00:00:00 2001 From: Sylvain Joubert joubert...@gmail.com Date: Thu, 2 Oct 2014 21:21:05 +0200

[cmake-developers] [PATCH] Prevent compilers to be silently modified when using Ninja, generator

2014-09-20 Thread Sylvain Joubert
cache was. I also activated the tests for this feature when building/testing CMake using Ninja Regards, Sylvain From e68aa37ebcb249293ffde51ba7999ef988770cd0 Mon Sep 17 00:00:00 2001 From: Sylvain Joubert joubert...@gmail.com Date: Sat, 20 Sep 2014 22:37:52 +0200 Subject: [PATCH] Prevent

[cmake-developers] [patch] Bash completion for label options of ctest

2014-09-03 Thread Sylvain Joubert
Hi, Please find attached a patch that updates the bash completion of ctest. It will now be able to complete the -L,-LE options and their long versions. Regards, Sylvain From 8361c9dae1540c23b5529bfb6bb4de3670ecd88a Mon Sep 17 00:00:00 2001 From: Sylvain Joubert joubert...@gmail.com Date: Wed, 3

Re: [cmake-developers] [patch] Support for swig 3.0

2014-07-06 Thread Sylvain Joubert
Le 06/07/2014 21:34, Julien Schueller a écrit : This is curious, SWIG does not provide an executable named swig3.0. Where did you get swig from ? I'm using Debian unstable, SWIG 3.0 is packaged under the 'swig3.0' package. This package provides the '/usr/bin/swig3.0' executable. -- Powered

[cmake-developers] [patch] Support for swig 3.0

2014-07-05 Thread Sylvain Joubert
Hi all, Please consider this patch that makes swig 3.0 supported by the FindSWIG module. Sylvain From e520170ce0c806616125eb125f94cdd364fedede Mon Sep 17 00:00:00 2001 From: Sylvain Joubert joubert...@gmail.com Date: Sat, 5 Jul 2014 14:55:36 +0200 Subject: [PATCH] Add support for swig 3.0