[cmake-developers] [CMake 0014706]: Sources compiled multiple times when building with make, multiple jobs, and targets with common dependencies
Mantis Bug Tracker
mantis at public.kitware.com
Fri Jan 17 15:11:16 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14706
======================================================================
Reported By: Luis Vega
Assigned To:
======================================================================
Project: CMake
Issue ID: 14706
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-01-17 15:11 EST
Last Modified: 2014-01-17 15:11 EST
======================================================================
Summary: Sources compiled multiple times when building with
make, multiple jobs, and targets with common dependencies
Description:
A source file will be compiled multiple times when the following combination of
conditions are met:
-Using gnu make to build the project.
-Two targets that have a common dependency are specified to the make command.
-Using multiple jobs.
If targets "foo" and "bar" depend on target "dep" and a build command is issued
as:
make -j foo bar
Then "dep" sources will be compiled twice.
Steps to Reproduce:
Create library target "dep"
Create executable target "foo" and link to "dep"
Create executable target "bar" and link to "dep"
Create gnu makefiles with cmake
Issue build command as: make -j foo bar
Output will show that each "dep" source was compiled twice (once per target that
depends on "dep").
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-01-17 15:11 Luis Vega New Issue
2014-01-17 15:11 Luis Vega File Added: example.tar.gz
======================================================================
More information about the cmake-developers
mailing list