> > 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
multiproject.tar.gz
Description: application/tgz
_______________________________________________ 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
