MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013359 | CMake | CMake | public | 2012-06-28 07:11 | 2016-06-10 14:31 |
Reporter | tetractius | ||||
Assigned To | Kitware Robot | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | All | OS | All | OS Version | All |
Product Version | CMake 2.8.8 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013359: Feature Request: performing the "Configure" step but not Generation with cmake command line tool (as in cmake-gui and ccmake) | ||||
Description | Feature Request: possibility to perform only the "Configure" step but not Generation with cmake command line tool (as is possible in cmake-gui and ccmake). I'm dealing with a very huge project (around 150 targets). Each target is defined in its own CMakeLists.txt inside the hierarchy and defines some variable for exposing some functionality related to the target its self (i.e. include path needed for using a library). But we have some cross dependencies. Because of that we have to perform a 2 step generation for creating the right cache. From the developer perspective, if a change to a cache variable is required, sometime is easier to change the value in the CMakeLists.txt, remove the cache and rerun the configure/generate step, than surfing in the huge CMakeCache.txt or cmake-gui The problem when I use cmake command line is that in the "first" step (with previous CMakeCache.txt deleted) I will obtain: - the intermediate CMakeCache.txt to be used for the second step (this is exactly what I want) - the first intermediate (incomplete) version of building configuration (Makefile, vcproj). Doing this, when I run the compilation it will recompile the whole project (even files that don't need to be recompiled) because of huge changes in the building configurations. Instead, if for the first step I run only the configure step (by cmake-gui or by cmake sending an error), no build configuration are generated in the first step, and the resultant build conf of the complete second step (no artificial errors) rebuild only what is possibly really needed to be recompiled. So shortly: for automation purpose would be nice to have a cmake tool command line parameter (i.e. --build_cache_only) for configuring only the cache but not writing makefiles/vcproj exactly as cmake-gui/ccmake can do. Our current way is to "SEND_ERROR" during first generation only causing that only the intermediate cache is generated (but not build configuration files written) | ||||
Steps To Reproduce | A sample of the cmake command line parameter that would be nice to have might be : cmake --build_cache_only or simply: cmake --configure (consistent with the cmake-gui) | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/4841/0013359.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-06-28 07:11 | tetractius | New Issue | |||
2012-06-28 07:19 | Eric NOULARD | Note Added: 0029856 | |||
2012-06-28 07:25 | tetractius | Note Added: 0029857 | |||
2012-06-28 11:23 | David Cole | Note Added: 0029859 | |||
2012-08-11 21:42 | David Cole | Status | new => backlog | ||
2012-08-11 21:42 | David Cole | Note Added: 0030452 | |||
2013-08-08 10:05 | tetractius | File Added: 0013359.patch | |||
2013-08-08 10:06 | tetractius | Note Added: 0033683 | |||
2013-08-08 10:09 | tetractius | Note Edited: 0033683 | bug_revision_view_page.php?bugnote_id=33683#r1227 | ||
2013-08-08 10:18 | tetractius | Note Edited: 0033683 | bug_revision_view_page.php?bugnote_id=33683#r1228 | ||
2013-08-08 10:18 | tetractius | Note Edited: 0033683 | bug_revision_view_page.php?bugnote_id=33683#r1229 | ||
2013-08-08 10:18 | tetractius | Note Edited: 0033683 | bug_revision_view_page.php?bugnote_id=33683#r1230 | ||
2013-08-08 10:19 | tetractius | Note Edited: 0033683 | bug_revision_view_page.php?bugnote_id=33683#r1231 | ||
2014-07-18 03:23 | Bartosz | Note Added: 0036409 | |||
2014-07-18 03:24 | Bartosz | Note Edited: 0036409 | bug_revision_view_page.php?bugnote_id=36409#r1525 | ||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042073 | |||
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|