Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread Chaos Zhang
Thanks for your analysis for me Andrew. I can't use "-j" options, i think the reason is the project i dealed with is not parallel. Thus when i use "make -jN", it couldn't work correctly every time. Obviously it caused by the Makefile generated by CMake, so i wonder if there are some CMake options t

Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread Chaos Zhang
Thanks for your references Decker, the condition is it cost close to three times time after i use CMake than already exist makefile to build project. And i found the CPU didn't use effectively than exist make flow, so i wonder if CMake provide some options to use CPU more effectively. Thanks, Ch

Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread Andrew Melo
On Tue, Jul 12, 2016 at 10:48 PM, Chaos Zhang wrote: > Thanks for your reply Raymond, by 'If you got 96% both times, then I would > say there's a problem.', did you mean if make performed like this, it means > this project can't use make -jN? If "make -j1" and "make -j8" ran in the same amount of

Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread J Decker
On Tue, Jul 12, 2016 at 7:54 PM, Chaos Zhang wrote: > Hi, all, > > I was trying to compile my project using CMake, after CMake generated > Makefile. > I used `/usr/bin/time -v make` to make the Makefile, got the result: > 'Percent of CPU this job got: 96%'. > Then i used `/usr/bin/time -v make -

Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread Chaos Zhang
Thanks for your reply Raymond, by 'If you got 96% both times, then I would say there's a problem.', did you mean if make performed like this, it means this project can't use make -jN? BTW, does CMake support some options to turn on hardware acceleration? Raymond Wan-2 wrote > Hi Chao, > > > On W

Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread Raymond Wan
Hi Chao, On Wed, Jul 13, 2016 at 10:54 AM, Chaos Zhang wrote: > I was trying to compile my project using CMake, after CMake generated > Makefile. > I used `/usr/bin/time -v make` to make the Makefile, got the result: > 'Percent of CPU this job got: 96%'. > Then i used `/usr/bin/time -v make -j8

[CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread Chaos Zhang
Hi, all, I was trying to compile my project using CMake, after CMake generated Makefile. I used `/usr/bin/time -v make` to make the Makefile, got the result: 'Percent of CPU this job got: 96%'. Then i used `/usr/bin/time -v make -j8` to make the Makefile, the result of CPU used is 'Percent of CP

Re: [CMake] best way to handle subdirectory libraries ?

2016-07-12 Thread Bill Hoffman
On 7/12/2016 2:11 PM, Dan Ibanez wrote: Other projects have a whole system atop CMake that manages this. I'm trying to get a sense of what the "best" setup looks like using pure CMake. See Usage Requirements: https://cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#id10 https://cmak

[CMake] best way to handle subdirectory libraries ?

2016-07-12 Thread Dan Ibanez
Hello, I've used CMake for a while but only recently discovered several features for better installing a package, and am trying to update the way I use CMake. My question as to do with projects which contain several modules/components/libraries, each of which is in a subdirectory. Each library ma

[CMake] OSX Code Signing best practice

2016-07-12 Thread Harry Mallon
Hello all, What is the current best practice for code signing OSX .apps and binaries? I am using: 1. MAC_OSX_BUNDLE for my .app targets. 2. unix style executables 3. dylibs 4. A prefpane (which I haven't got working yet) using something like the below: add_library(prefpane MODULE ${

Re: [CMake] CMake Reports Incorrect HDF5 Libraries on OS X after 3.6.0 Upgrade

2016-07-12 Thread Robert Maynard
Hi Breannan, You can track the status of the fix at https://gitlab.kitware.com/cmake/cmake/merge_requests/34 On Mon, Jul 11, 2016 at 8:52 AM, Robert Maynard wrote: > Hi Breannan, > > I am able to reproduce this and will start digging into why this is occurring. > > On Sun, Jul 10, 2016 at 6:34 P

[CMake] Splitting in multiple directories

2016-07-12 Thread portolan
Hello, I am new to Cmake and I have a pretty strange behaviour: I set my c+++ project to work with a single CMakefile.txt, and now I am trying to have a more proper version with a .txt for each subdirectory Pretty normal stuff, my source tree is: --Lib(my sources)