[CMake] DEPFILE usage in add_custom_command(...)

2018-12-12 Thread Attila Krasznahorkay
Dear All, I'm trying to use the DEPFILE argument of add_custom_command(...) to be able to tell Ninja exactly when it should re-run that custom command. But unfortunately I'm not able to get it to work as I'd like. :-( I'm running a custom command that processes a header file through a custom e

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

2018-12-12 Thread Mateusz Loskot
On Mon, 10 Dec 2018 at 18:31, Bill Hoffman via CMake wrote: > On 12/8/2018 7:47 PM, Mateusz Loskot wrote: > > > > 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 binar

[CMake] Dependency managment

2018-12-12 Thread Ciccio Pasticcio
Hi all, we are trying to re-design the build system of an existing complex project using cmake. We have a source tree such this (it is only an example to help explaining the problem) . └── libs ├── CMakeLists.txt ├── libA │ ├── CMakeLists.txt │ ├── include │ │ └── libA.

Re: [CMake] Dependency managment

2018-12-12 Thread Attila Krasznahorkay
Hi Gabriele, What do you mean exactly by "we can compile libA but we cannot compile libB without installing libA because the latter needs it"? o.O Are you trying to find libA in libs/libB/CMakeLists.txt with find_package(...)? "Normal" targets (libraries and executables) should be globally visi

[CMake] FindBZip2 fails to set BZIP2_NEED_PREFIX if using x64

2018-12-12 Thread Luca Beldi
Hi Everyone, I posted a bug ticket (https://gitlab.kitware.com/cmake/cmake/issues/18701) but I’m not sure if this is a bug in CMake or I just missed something. Configuring a project that contains find_package(BZip2) cmake "Visual Studio 14 2015" ../ will correctly produce -- Looking for BZ2_bzC

[CMake] Changed behavior of CPACK_PACKAGE_VERSION generation?

2018-12-12 Thread Björn Blissing
Hi, Today we discovered that our generated CPACK_PACKAGE_VERSION variables were broken. This is probably related to us updating to a newer version of CMake. Previously we generated this variable by setting the CPACK_PACKAGE_VERSION_MAJOR and CPACK_PACKAGE_VERSION_MINOR to fixed values, while C

[CMake] [ANNOUNCE] cmake.org and gitlab.kitware.com downtime

2018-12-12 Thread Robert Maynard via CMake
CMake Users, Kitware NY is moving into a new office building on Dec 15th. This involves moving the company's network infrastructure. As a result, there will be downtime for cmake.org, cmake.org/cmake/help/, open.cdash.org, and gitlab.kitware.com. We expect that these sites will be unavailable all