Re: [cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

2014-07-30 Thread Nick Overdijk
, Jul 28, 2014 at 4:19 PM, Brad King brad.k...@kitware.com wrote: On 07/24/2014 05:47 PM, Nick Overdijk wrote: I'm using target_include_directories of A to get some include directories into B well, so I can't use target_link_libraries(A INTERFACE B), Can you clarify this with sample code

Re: [cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

2014-07-30 Thread Nick Overdijk
lines, of course only usable for static libs). On Wed, Jul 30, 2014 at 4:51 PM, Brad King brad.k...@kitware.com wrote: On 07/30/2014 05:31 AM, Nick Overdijk wrote: https://github.com/NickNick/cmake-interface-includes/commits/master Thanks. For reference, the summary

Re: [cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

2014-07-24 Thread Nick Overdijk
, 2014 at 3:19 PM, Nick Overdijk n...@astrant.net wrote: Crystal clear. Another layer of indirection eh? I'll see if I can work with that... Thanks for the explanation. On Wed, Jul 23, 2014 at 3:14 PM, Brad King brad.k...@kitware.com wrote: On 07/23/2014 09:07 AM, Nick Overdijk wrote: Oh

[cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

2014-07-23 Thread Nick Overdijk
Hey guys, With this https://github.com/NickNick/cmake-dependency-waiting code here, why do b wait for a and c wait for b to be build? The object files could all be build in parallel right? Not doing it is making my distcc-cluster less and less useful the more nodes I add. Is there a way to fix or

Re: [cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

2014-07-23 Thread Nick Overdijk
Thanks for the quick reply, but what if c needs b and b needs a? Adding INTERFACE will then break the build of course, right, since b isn't really linked to a... Or am I mistaken? On Wed, Jul 23, 2014 at 2:36 PM, Brad King brad.k...@kitware.com wrote: On 07/23/2014 08:00 AM, Nick Overdijk

Re: [cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

2014-07-23 Thread Nick Overdijk
Oh wait, since a is in the interface of b, b will always be accompanied by a, even though it's not a dependency. Is that how it works? On Wed, Jul 23, 2014 at 2:58 PM, Nick Overdijk n...@astrant.net wrote: Thanks for the quick reply, but what if c needs b and b needs a? Adding INTERFACE

Re: [cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

2014-07-23 Thread Nick Overdijk
Crystal clear. Another layer of indirection eh? I'll see if I can work with that... Thanks for the explanation. On Wed, Jul 23, 2014 at 3:14 PM, Brad King brad.k...@kitware.com wrote: On 07/23/2014 09:07 AM, Nick Overdijk wrote: Oh wait, since a is in the interface of b, b will always

Re: [CMake] find_package(mpi) language specification

2013-09-05 Thread Nick Overdijk
You can pass the QUIET parameter to find_package... that'll at least shut it up. Perhaps easiest in your case. On 2013-05-09, at 18:22:25 , Andrew Corrigan wrote: Hello, My C++ code only uses the MPI C library. 1. Is there a way to tell find_package(MPI) to only look for the C version?

[CMake] Updated code in header file ignored?

2013-03-17 Thread Nick Overdijk
Howdy, I have a header file, vertices.hpp with some not-inline function-definitions (yes really defs not decls), and a project, beamer. Sometimes when I change vertices.hpp, the changes don't reflect in the binary. I was wondering why this is, so I grepped a bit in my build-dir:

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Nick Overdijk
You should install boost in /usr/local with ./b2 install, then more packages will find it. Did you do this or not? Anyway, I just did this: git clone git://github.com/SOCI/soci.git cd soci cd src mkdir build cd build cmake .. And it worked for me. So what did you do exactly? On 2013-14-03, at

Re: [CMake] Build several targets using cmake --build dir

2013-03-14 Thread Nick Overdijk
You can only 'cmake' a single-target. If you want to have more targets, create more directories: for each target one. On 2013-14-03, at 19:07:36 , John Drescher wrote: I use cmake 2.8.10 on windows. I would like to build several targets with cmake --build dir so the underlying build

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Nick Overdijk
found -- Configuring incomplete, errors occurred! On Thu, Mar 14, 2013 at 11:01 AM, Nick Overdijk n...@astrant.net wrote: You should install boost in /usr/local with ./b2 install, then more packages will find it. Did you do this or not? Anyway, I just did this: git clone git

Re: [CMake] Setting XCode Runtime Search Path

2013-02-19 Thread Nick Overdijk
Dakon, Don't know his real name, sorry, wrote something for this, you can get it here: git://anongit.kde.org/scratch/dakon/cmake-cxx11 On 2013-20-02, at 01:17:28 , Alexey Petruchik wrote: Hi, I'm doing this by adding: set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS

Re: [CMake] Best way to 'pull through' dependencies of External projects?

2013-02-14 Thread Nick Overdijk
I don't really get your specific problem... CMake can find and install ITK and DCMTK just fine here? (I had to manipulate the linker-order of DCMTK a bit but that's almost to be expected, sadly). You're saying that when you find_package(DCMTK) it's libraries doesn't include some library it

Re: [CMake] Best way to 'pull through' dependencies of External projects?

2013-02-14 Thread Nick Overdijk
are needed to shut the linker up and move on. On Thu, Feb 14, 2013 at 5:48 PM, Nick Overdijk n...@astrant.net wrote: I don't really get your specific problem... CMake can find and install ITK and DCMTK just fine here? (I had to manipulate the linker-order of DCMTK a bit but that's almost

Re: [CMake] Dependency for launching an application

2013-02-08 Thread Nick Overdijk
Can't you only launch parent.exe in VS and remove the dependency? On 2013-08-02, at 12:19:56 , Andreas Haferburg wrote: In our build, we have two executables, parent.exe launches child.exe as a child process. ATM the build is set up with add_dependencies(parent child). So when using F5 in

Re: [CMake] Dependency for launching an application

2013-02-08 Thread Nick Overdijk
. Andreas On 08.02.2013 12:21, Nick Overdijk wrote: Can't you only launch parent.exe in VS and remove the dependency? On 2013-08-02, at 12:19:56 , Andreas Haferburg wrote: In our build, we have two executables, parent.exe launches child.exe as a child process. ATM the build is set up

Re: [CMake] Dependency for launching an application

2013-02-08 Thread Nick Overdijk
I'm probably missing something, but why add_dependencies(parent child) ? That doesn't make sense. Parent is not using anything from child. You can just leave that line away and everything will be fine right? On 2013-08-02, at 16:24:21 , Andreas Haferburg wrote: Yes, that's pretty much the

Re: [CMake] CMAKE_lang_COMPILER_ID not set on Darwin

2013-01-30 Thread Nick Overdijk
We use this if(CMAKE_C_COMPILER MATCHES clang OR CMAKE_CXX_COMPILER MATCHES clang) set(COMPILING_WITH_CLANG True) elseif(CMAKE_C_COMPILER MATCHES .*gcc.* OR CMAKE_CXX_COMPILER MATCHES .*g[+][+].*) set(COMPILING_WITH_GCC True) endif() In our project On 2013-30-01, at 14:42:05 ,

Re: [CMake] CLANG_CXX_LIBRARY

2013-01-24 Thread Nick Overdijk
CXXFLAGS=flags to your compiler here cmake or cmake -DCMAKE_CXX_FLAGS=flags to your compiler here 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

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Nick Overdijk
I use add_subdirectory to add bullet and sdl.. Could you try that? I've never worked with ExternalProject_Add and wouldn't really know what it does. On 2013-20-01, at 22:26:44 , Ansis Māliņš wrote: The line ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR}) fails with Install the

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Nick Overdijk
You don't use find_package when add_subdirectory, just target_link_library(target name by Bullet). I'm not sure if this is frowned upon or not, but it does work, and shouldn't change that often or anything. Strictly speaking it's a bit dirty though. Thing is, why is bullet build by you? Do you

Re: [CMake] cmake system library

2013-01-12 Thread Nick Overdijk
You could install boost to /usr/local if you're on linux/OSX? That's the standard location for non-system libs, CMake-Modules will look there. On 2013-12-01, at 13:04:50 , peterle oberwi wrote: Hi, I want to use Boost library in my project. But there is one version installed in the

[CMake] CMAKE_INCLUDE_SYSTEM_FLAG_CXX set to -I by default?

2013-01-12 Thread Nick Overdijk
When I use include_directories(SYSTEM $path), it still includes stuff with -I. Through http://stackoverflow.com/questions/3371127/use-isystem-instead-of-i-with-cmake I found out I should change some variable, but this seems like a bug in CMake? -- Powered by www.kitware.com Visit other

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
Aren't you the one generating those names? http://www.swig.org/Doc1.3/Introduction.html#Introduction%5Fbuild%5Fsystem On 2012-28-11, at 01:11:24 , Miller Henry wrote: Our normal coding standards requires zero warnings with –wall –wextra (gcc/clang), but often the swig generated file has

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
I had a derp, sorry about that. Obviously you don't, hah. You can put all the swig-generated files in a directory, and then perhaps set the properties with a glob? On 2012-28-11, at 02:22:00 , Nick Overdijk wrote: Aren't you the one generating those names? http://www.swig.org/Doc1.3

Re: [CMake] Incoherent compiler detection in MacOSX 10.7.4

2012-10-03 Thread Nick Overdijk
I'm not sure where it was, but CMake prefers gcc over cc, and cxx over g++. You can force it by setting CC=clang. On 2012-03-10, at 09:27:28 , Pere Mato Vila wrote: In my Mac system (10.7.4) with Xcode (4.4.1) CMake finds by default the GNU compiler for C and Clang for C++. This posses

Re: [CMake] Boost

2012-08-08 Thread Nick Overdijk
Try again with this example: http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote: I am searching boost like as follows : # Boost Library Search find_package (Boost) if (Boost_FOUND)

Re: [CMake] Boost

2012-08-08 Thread Nick Overdijk
: Thanks for the reply. But is this is a Bug ? Regards, Sumit On Wed, Aug 8, 2012 at 1:28 PM, Nick Overdijk n...@astrant.net wrote: Try again with this example: http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake On 2012-08-08, at 12:52:06 , Sumit