View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016136CMakeCMakepublic2016-06-06 08:292016-06-10 14:31
ReporterTobias Hunger 
Assigned ToKitware Robot 
PlatformLinux, Windows, MacOSLinux, Windows, MacOS Version
Product VersionCMake 3.5.2 
Target VersionFixed in Version 
Summary0016136: cmake --build can not build several targets
DescriptionI am using cmake --build in Qt Creator now and got feedback that all but the last target passed to cmake --build . --target a --target b are ignored.

It would be really convenient to be able to build more than one target in one go using cmake --build.
Steps To Reproduce1) Generate any cmake project with two targets defined called A and B.
2) try to build both targets at once using cmake --build . --target A --target B
3) Watch as only target B is built.
TagsNo tags attached.
Attached Files


Brad King (manager)
2016-06-06 08:50

One of the changes in 3.6: [^]

is that --build now rejects extra --target options instead of silently ignoring them. That is at least better than the old behavior. Actually accepting multiple --target options may require more work because we need to figure out the proper command lines for each native build tool. Some investigation will be needed to see if MSBuild even supports it, though I guess we could fall back to multiple invocations internally.
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-06-06 08:29 Tobias Hunger New Issue
2016-06-06 08:50 Brad King Note Added: 0041137
2016-06-10 14:29 Kitware Robot Note Added: 0043009
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team