[CMake] One target being built several times during parallel build
Denis Scherbakov
denis_scherbakov at yahoo.com
Tue Jun 16 10:33:37 EDT 2009
> > I have a project with three executables:
> >
> > E1 depends on lib A
> > E2 depends on lib A
> > E3 depends on lib A
> >
> > First A must be built, then E1, E2 and E3.
> > I do "gmake -j9 E1 E2 E3" and I see that target "A" is
> being built 3? times
> > instead of just one. I also notice that progress
> counter goes past 100%.
> >
> > So my question: Am I hitting some kind of a bug, or
> this use is not foreseen?
>
> What version of CMake? Also, please post your
> CMakeLists.txt file code.
I use 2.6.4 on Gentoo Linux. I attached an example code that also
does not work:
1. Unpack multiproject.tar.gz
2. cd multiproject
3. mkdir .bin
4. cd .bin
5. rm -rf * && cmake ..
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%.
(Maybe you will observe the problem not from the first try).
Could you point me to what I do wrong in this simple project?
Denis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multiproject.tar.gz
Type: application/x-tgz
Size: 1187 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090616/a4433d12/attachment-0001.bin>
More information about the CMake
mailing list