MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013005 | CMake | CMake | public | 2012-02-29 13:35 | 2016-06-10 14:31 |
Reporter | Jérôme Gardou | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.7 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013005: Add PRECOMPILE_RULE and POSTCOMPILE_RULE source property | ||||
Description | Hello. For finer control of our build process, we sometimes need to add some supplementary commands for some specific files. Although add_custom_command is great, it's not enough for our purpose. The documentation says it all, and the implementation is really straightforward. I only added this for the MakeFile generator, as we don't really support anything else, and I'm not familiar enough with other code portions of cmake. It also ensures that the compilation depends on those rules. Regards. Jérôme | ||||
Steps To Reproduce | The functionality can be tested with the following: cmake_minimum_required(VERSION 2.6) add_library(test test1.c test2.c) set_source_files_properties(test1.c test2.c PROPERTIES PRECOMPILE_RULE "echo <SOURCE> will be compiled there: <OBJECT>" POSTCOMPILE_RULE "echo <SOURCE> was compiled with flags <FLAGS> and defines <DEFINES>") | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | PRE-POSTCOMPILE_RULE.diff (4,280) 2012-02-29 13:35 https://public.kitware.com/Bug/file/4239/PRE-POSTCOMPILE_RULE.diff | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-02-29 13:35 | Jérôme Gardou | New Issue | |||
2012-02-29 13:35 | Jérôme Gardou | File Added: PRE-POSTCOMPILE_RULE.diff | |||
2012-02-29 14:57 | Brad King | Note Added: 0028762 | |||
2012-08-11 21:09 | David Cole | Status | new => backlog | ||
2012-08-11 21:09 | David Cole | Note Added: 0030370 | |||
2016-06-10 14:28 | Kitware Robot | Note Added: 0041993 | |||
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 | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|