View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015465 | CMake | (No Category) | public | 2015-03-21 05:03 | 2016-06-10 14:31 | ||||
Reporter | Stephen Kelly | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015465: Provide a way to build individual files through cmake | ||||||||
Description | CMake has the `--build` command line option providing an abstraction of 'run the build in the specified directory' action. Particular configurations and targets to build can be specified with other options. A new abstraction could be added for 'build the object for sourcefile f'. The Makefiles generator already generates targets for each object in each directory. Those targets are not available from the 'top level' of the build dir. grantlee/make_build$ cmake .. -G "Unix Makefiles" grantlee/make_build$ make -C templates/lib engine.cpp.o Ninja has native support for 'building the output of a source file' using '^'. grantlee/ninja_build$ cmake .. -G Ninja grantlee/ninja_build$ ninja ../templates/lib/engine.cpp^ grantlee/ninja_build$ cmake --build . --target ../templates/lib/engine.cpp^ Ninja seems to build more dependencies of the object file though too (it runs moc via automoc for example, but make seems not to). It is unknown whether the IDE generators have a way to build an individual file. As the syntax is different for different tools, it could be useful for cmake to provide a unified abstraction. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0038365) Stephen Kelly (developer) 2015-03-30 16:55 |
http://thread.gmane.org/gmane.comp.kde.users.kdevelop/7234 [^] |
(0042740) 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. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-03-21 05:03 | Stephen Kelly | New Issue | |
2015-03-21 05:08 | Stephen Kelly | Relationship added | related to 0015462 |
2015-03-30 16:55 | Stephen Kelly | Note Added: 0038365 | |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042740 | |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |