Re: [CMake] subversion

2016-06-26 Thread Nagger
Am 24.06.2016 um 19:48 schrieb Andreas Naumann: At the moment, I check, if my directory is a working copy and if it is not, the version variable is not defined. In my oppinion, it would be better, if the macro from the subversion module would simply define a variable "is_working_directory" inste

Re: [CMake] Building a tool immediately so it can be used later in same CMake run

2016-04-14 Thread Nagger
Am 14.04.2016 um 14:17 schrieb Craig Scott: Re-using the same build directory is a key part of the technique to avoid having to build the same thing twice. A vague idea: Use two different CMAKE_BINARY_DIRs but let the two mycompdir-targets use the same binary subdirectory. (By using the 2nd p

Re: [CMake] find_package

2015-04-27 Thread Nagger
Hi, After this fails, if i delete CMakeCache.txt and rerun the script, it works. In fact it seems to be related to the line: Boost_INCLUDE_DIR:PATH=/usr/include which is in CMakeCache.txt. Than just delete that cache variable (before the second call of find_package): unset(Boost_INCLUDE_DIR

Re: [CMake] Generator-independent incremental CMake run

2014-08-14 Thread Nagger
Am 14.08.2014 16:31, schrieb David Cole: We have a fairly large project with about 400 targets. $ cmake %builddir% -> takes about 5 minutes for a No-op $ cmake --build %builddir% --target ZERO_CHECK -> takes 20 seconds for No-op This is the problem. "cmake %builddir%" should be as fas

Re: [CMake] Generator-independent incremental CMake run

2014-08-14 Thread Nagger
Am 14.08.2014 08:13, schrieb Hendrik Sattler: On 13. August 2014 21:40:34 MESZ, Nagger wrote: But what I really miss is an "--update" option for CMake which is doing all the work (updating if possible, configuring if necessary) internally. It would use the implementation of 'cm

Re: [CMake] Generator-independent incremental CMake run

2014-08-13 Thread Nagger
Am 13.08.2014 21:59, schrieb Paul Smith: On Wed, 2014-08-13 at 21:40 +0200, Nagger wrote: Does anyone already came up with a good solution? Isn't this a common problem? I'm not sure about the other generators, but the makefile generator has this built-in; that is, if the makefiles d

[CMake] Generator-independent incremental CMake run

2014-08-13 Thread Nagger
Hello, For our Continuous Integration tests we need fast incremental builds (only build what has changed). This also includes that CMake only has to run if necessary (some CMakeLists.txt changed). It seems there is no beautiful/portable/generator-independent way to do this?! Fortunately we m

Re: [CMake] find_library(): prioritize custom search path

2013-12-16 Thread Nagger
Am 16.12.2013 14:57, schrieb Nico Schlömer: Hi all, when using find_library(...), and two versions of libX are installed, I would like to prioritize the one found it /my/custom/path/ over the one in /usr/lib/. As explained in the find_library()'s help

Re: [CMake] Xml modification

2013-11-18 Thread Nagger
Am 18.11.2013 09:58, schrieb Lars Lars: Does cmake support xml modification? We would like to update a number of xml configuration files with for instance version information. This information is only available at build time. For simple documents string(REGEX REPLACE ...) may be suitable. (toge