[CMake] Execution order

David Aldrich David.Aldrich at EU.NEC.COM
Fri Sep 17 10:49:12 EDT 2010


Hi Michael

> Ok, to clear things up:
<snip>
> I hope you get the idea.

Thanks very much, I think I get it now!  I have implemented an out-of-source build tree for our project, as you suggested, and it is building fine.

I'm wondering what my co-developers will think of it. It is usual for us to work in the source directory of a certain library, make modifications and then type make to build just that library.  With this out-of-source build tree it will be necessary to hop from the source dir to the build tree, type make there and let the entire project build (i.e. other libraries and the executable as well). Am I understanding correctly?

> So, I usually have something like this:
> 
> ~/Projects/super_duper                   <--- source tree
> ~/Projects/super_duper-build/debug       <--- debugging build tree
> ~/Projects/super_duper-build/release     <--- release build tree
> ~/Projects/super_duper-build/dashboards  <--- parent directory for dashboard builds

Do you usually let the libraries and executables live in the subdirectories where CMake would naturally put them? 

For example, some of my build artifacts would be:

super_duper-build/release/Kernel/libKernel.a
super_duper-build/release/VersionInfo/versionInfo

Or would good practice me to put them somewhere more obvious?

Best regards

David


More information about the CMake mailing list