MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006266 | CMake | CMake | public | 2008-01-23 04:08 | 2008-01-23 08:14 |
| Reporter | Pau Garcia i Quiles | ||||
| Assigned To | |||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0006266: Feature request: add #cmakedefine-like directive without #define | ||||
| Description | CMake allows to customize header files by using CONFIGURE_FILE and "#cmakedefine variable value", which generates "#define variable value". It would be nice if we had something like #cmakedefine but for arbitrary files which only wrote the value. For example: "#cmakeset my_text", which would generate "my_text". It's a bit like having <?php my_php_code ?> tags in a .php file. Use case: combined use of configuration files and INSTALL directives. I need to specify the application directory both in pfsi.conf and in CMakeLists.txt for INSTALL( FILES ${PROJECT_SOURCE_DIR}/pfsi.png DESTINATION ${CMAKE_INSTALL_PREFIX}/{PFSI_APP_DIR} ). NB: I know this can the done with FILE but I think the use case is common enough, and the implementation simple enough, to add this feature. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/1291/cmakeset.patch https://public.kitware.com/Bug/file/1292/cmakeset-2.patch https://public.kitware.com/Bug/file/1293/cmakeset-documentation.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-01-23 04:08 | Pau Garcia i Quiles | New Issue | |||
| 2008-01-23 06:06 | Pau Garcia i Quiles | File Added: cmakeset.patch | |||
| 2008-01-23 06:07 | Pau Garcia i Quiles | Note Added: 0010220 | |||
| 2008-01-23 06:39 | Pau Garcia i Quiles | File Added: cmakeset-2.patch | |||
| 2008-01-23 06:39 | Pau Garcia i Quiles | Note Added: 0010221 | |||
| 2008-01-23 06:45 | Pau Garcia i Quiles | File Added: cmakeset-documentation.patch | |||
| 2008-01-23 06:46 | Pau Garcia i Quiles | Note Added: 0010222 | |||
| 2008-01-23 07:22 | Pau Garcia i Quiles | Note Added: 0010223 | |||
| 2008-01-23 08:14 | Bill Hoffman | Status | new => closed | ||
| 2008-01-23 08:14 | Bill Hoffman | Resolution | open => no change required | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||