Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread Alan W. Irwin
On 2013-01-24 23:07+0100 Wojciech Knapik wrote: Anyway - yeah, the dependencies are there now and I don't think I'm missing any. If I create a target foo, that depends on bar and qux and both bar and qux do target_link_libraries(target fred), then when I try to build foo in parallel, I get a rac

Re: [CMake] CPack: Installing applications in separate folders

2013-01-24 Thread Eric Noulard
2013/1/25 Ian Monroe : > On Mon, May 21, 2012 at 3:38 PM, Eric Noulard wrote: >> 2012/5/21 David Cole : >>> On Mon, May 21, 2012 at 2:05 PM, wrote: But what about other systems like linux. If I have an executable and shared libraries for example. Then it is possible to install

Re: [CMake] CPack: Installing applications in separate folders

2013-01-24 Thread Ian Monroe
On Mon, May 21, 2012 at 3:38 PM, Eric Noulard wrote: > 2012/5/21 David Cole : >> On Mon, May 21, 2012 at 2:05 PM, wrote: >>> >>> But what about other systems like linux. If I have an executable and >>> shared libraries for example. >>> Then it is possible to install it under /opt/myproject, but i

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread Wojciech Knapik
On Thu, Jan 24, 2013 at 11:19:11AM -0800, Alan W. Irwin wrote: > Therefore, I advice using unique target names (just like I do). If > you happen to like a particular target name such as "ut", then append > a suffix to it (such as subdirectory name) to make that target easy to > identify and globa

Re: [CMake] CLANG_CXX_LIBRARY

2013-01-24 Thread Nick Overdijk
CXXFLAGS= cmake or cmake -DCMAKE_CXX_FLAGS="" On 2013-24-01, at 13:02:58 , ambreen haleem wrote: > Hi, > > I want to set clang_cxx_library parameter in cmake. Does not seems to be > working by passing through linker. Is there a way I can do that? > > Regards > Ambreen > -- > > Powered by

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread Alan W. Irwin
On 2013-01-24 12:26+0100 wmkna...@gmail.com wrote: Could you describe your approach in more detail ? If I understand it correctly, it requires quite a bit of manual maintenance... It does require initial work to set up the dependencies (see below) properly to avoid race conditions. But there

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread Matthew Woehlke
On 2013-01-23 23:52, Alan W. Irwin wrote: Whether ordinary or custom targets can be built in parallel depends on the back-end being used. For the "Unix Makefiles" generator it is simple; make -j8 test_everything With the Ninja generator it is even easier; 'ninja []' :-). (You can also give -

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread wmkna...@gmail.com
I consulted the developers and in the end we decided, that a separate CMAKE_BUILD_TYPE just for testing will allow us to avoid all these problems in a pretty clean way. I'll just EXCLUDE_FROM_ALL the test targets in Debug and Release, and exclude the regular targets in Testing. This way, they'll

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread wmkna...@gmail.com
Actually, scratch that. Option 2) is not so great, because it only allows me to build the tests from the top level (all of them), or from the "bottom" (just one test). And parallel builds still break. So I guess I need a brand new idea, or another fix for that one... - Reply message - F

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread wmkna...@gmail.com
Could you describe your approach in more detail ? If I understand it correctly, it requires quite a bit of manual maintenance... I've tried the following so far: 1) Created a "ut" target on top and for every unit test did add_dependency(ut that_ut). That works fine in parallel, but builds *all*

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread wmkna...@gmail.com
Sorry for the top-posting, I'm using my phone to send this. The unique names in each subdir are not an acceptable solution for me. Also, the project builds on Linux only, where gmake is fine. Thanks, WK - Reply message - From: "Matthew Woehlke" To: Cc: Subject: [CMake] Building all

[CMake] error: cmake_policy PUSH without matching POP

2013-01-24 Thread Biddiscombe, John A.
I don't really understand what these policies are for, but I always get the error message in the title when I include cmake generate config files which contain push pop such as the following example == cmakelists cmake_minimum_required(VERSION 2.8) project(TEST) # makes no dif

Re: [CMake] Building all tests in parallel (whole subtrees)

2013-01-24 Thread Brett Delle Grazie
On 24 January 2013 00:07, Matthew Woehlke wrote: > On 2013-01-23 18:08, Wojciech Knapik wrote: > >> I set up targets that build the unit test executables and >> marked them with EXCLUDE_FROM_ALL, because I don't want to tie building >> them to building the application code. Now I need a way to bui

[CMake] find_packge behavior regarding enabled languages

2013-01-24 Thread xantares 09
Hi, I noticed that when all languages are disabled through the project command: project ( Foo NONE ) ... then a dependent Bar sub-package cannot be detected from it's BarConfig.cmake configuration file: find_package ( Bar MODULE ) Do you think it's a bug ? A feature ? I explicitely disabled a