Denis Scherbakov wrote:
6. gmake -j5 mytest printf
7. I observe target PUTS being built 2 times and "Building CXX object 
puts/CMakeFiles/puts.dir/puts.cpp.o" 2 times. Also counter goes to 150%.

Your project looks fine.

I missed in your earlier post that you ran "gmake -j9 E1 E2 E3".
The problem is that the Makefiles that CMake generates do not
support parallel builds with multiple targets on the command line.
(I don't remember the reason off the top of my head, but I think
there was a conflict between this and some other features that
were deemed more important.)

Parallel builds work very well as long as only one initial target
is specified.  You can also specify no initial target and it will
build all targets with maximum possible parallelism.

-Brad
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to