Re: [CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
Thanks also for this hint: I will give it a try! Regards, Cornelis Am Freitag, den 16.02.2018, 21:35 +0300 schrieb Konstantin Tokarev: > > > 16.02.2018, 21:32, "Cornelis Bockemühl" : > > Thanks - that did the trick! > > > > > > > > And indeed by entering -j4 in the "Tool arguments" field, the b

Re: [CMake] OBJECT Library Type

2018-02-16 Thread Robert Maynard
As the error message states an OBJECT library can't consume other OBJECT libraries. When creating the actual library you will have to explicitly state what $ you need. If you are just looking at a way to simplify the logic for the consuming library you should look at doing the following: 1. Use a

Re: [CMake] Parallel build setup question

2018-02-16 Thread Konstantin Tokarev
16.02.2018, 21:32, "Cornelis Bockemühl" : > Thanks - that did the trick! > > And indeed by entering -j4 in the "Tool arguments" field, the build command > changes "magically" into "cmake --build . --target all -- -j4" - with the > "--" to pass the argument further to gmake. > > Actually compile

Re: [CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
Thanks - that did the trick! And indeed by entering -j4 in the "Tool arguments" field, the build command changes "magically" into "cmake --build . --target all -- -j4" - with the "--" to pass the argument further to gmake. Actually compile time of my project after a "clean" went down from 23 to

[CMake] OBJECT Library Type

2018-02-16 Thread Simone Atzeni
Hi, I am trying to merge together two "OBJECT" libraries. I am following the tutorial at: https://cmake.org/Wiki/CMake/Tutorials/Object_Library However, in my case I have more level of folder nesting, and at the parent level I would like to merge two "OBJECT" libraries and only at the top I wan

[CMake] OBJECT Library Type

2018-02-16 Thread Simone Atzeni
Hi, I am trying to merge together two "OBJECT" libraries. I am following the tutorial at: https://cmake.org/Wiki/CMake/Tutorials/Object_Library However, in my case I have more level of folder nesting, and at the parent level I would like to merge two "OBJECT" libraries and only at the top I wan

Re: [CMake] Parallel build setup question

2018-02-16 Thread Konstantin Tokarev
  16.02.2018, 20:20, "Cornelis Bockemühl" :Thanks for your hints! And you are right: it is still interesting to know how QtCreator is actually invoking and using cmake.You should go to project settings and change cmake --build arguments there  This is the beginning of a log that the QtCreator was g

Re: [CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
Thanks for your hints! And you are right: it is still interesting to know how QtCreator is actually invoking and using cmake. This is the beginning of a log that the QtCreator was generating during a build. Actually with two modules where nothing had to be done, but still showing how cmake and gma

Re: [CMake] Parallel build setup question

2018-02-16 Thread Michael Ellery
I don’t know anything about QTCreator, but the question really boils down to how to get your IDE to pass extra args to the build tool - it’s not really a cmake issue except to the extent that CMake can be used to invoke the build step (after it has been used to generate the build). It sounds li

[CMake] Parallel build setup question

2018-02-16 Thread Cornelis Bockemühl
Hello, Somehow I seem to miss some crucial point regarding setup for parallel build with CMake, so I would be happy if somebody can push me the last few millimeters to hit my target! My configuration is on OpenSuse Linux (Leap - 64-bit), working with QtCreator and CMake, using the "make" configur