View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015814CMake(No Category)public2015-10-27 16:522016-06-10 14:31
ReporterLagu 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015814: Feature request: Split compilation fase on preprocessor
DescriptionHi, here a feature request for optimizations, acutally we use a lot the preprocessor options, cmake helps a lot with this but actually in the development have a hight time's consume when we try to test or compile more times with different options, so if it posible add an option to split the compilations fase, first compile the project without the preprocessor, and then compile with the requested options, i found in this page some options to do this with gcc at least: http://stackoverflow.com/questions/4049962/can-i-squeez-my-own-program-between-the-preprocessor-and-compiler [^]

i'm very bad explaining this so i'll try to say with way too, first an example, we have a foo project with a fuu-1 and fuu-2 preprocessor options, so if we want compile the project we do:

cmake . -Dfuu-1=ON -Dfuu-2=ON

if we need both options, and then we do make and the project is compiled, but if we want try other like

cmake . -Dfuu-1=ON -Dfuu-2=OFF

the project recompile the files with the modified preprocessor.
So the idea, first compile the project without the preprocessor options, then as second phase compile with the options, so if we change some option when we use make the compiler skip the first phase and only compile the preprocessor options.

sorry my bad eng.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042868)
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
2015-10-27 16:52 Lagu New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042868
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