[CMake] One target being built several times during parallel build

Brad King brad.king at kitware.com
Tue Jun 16 10:13:31 EDT 2009


Denis Scherbakov wrote:
> 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.

-Brad


More information about the CMake mailing list