MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015721 | CMake | CMake | public | 2015-08-31 09:23 | 2016-06-10 14:31 |
Reporter | Thomas Ruschival | ||||
Assigned To | Alex Neundorf | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 3.3 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015721: Indexer configuration of Eclipse CDT4 Project does not recognize symbols set by modules | ||||
Description | The issue is a minor one regarding the macros ( symbol definitions) for the eclipse CDT indexer. The cmake-generated eclipse project only recognizes symbols that are explicitly added with add_defintions() in CMakeLists.txt. The eclipse project does not consider any target-specific COMPILE_DEFINITIONS for indexing the source. Also a list of compile defintions defined by a module that can be used in target compile defintions cannot be used with add_definitions(). Currently I mitigate this behavior by find_package(FOO REQUIRED) # FOO defines a list FOO_COMPILE_DEFINITIONS # This does not work since each symbol has to start with -D # ADD_DEFINITIONS(${FOO_COMPILE_DEFINITIONS}) foreach( DEF ${FOO_COMPILE_DEFINITIONS}) ADD_DEFINITIONS("-D${DEF}") endforeach(DEF) IMHO this is somewhat ugly. I would prefer to have all definitions used for the targets added to the indexer settings of eclipse to allow for easy source navigation. Since the project is build by makefiles anyway adding all symbols doesn't affect the build. Does this make sense or am I looking in the wrong direction? | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-08-31 09:23 | Thomas Ruschival | New Issue | |||
2015-08-31 16:16 | Alex Neundorf | Assigned To | => Alex Neundorf | ||
2015-08-31 16:16 | Alex Neundorf | Status | new => assigned | ||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042833 | |||
2016-06-10 14:29 | Kitware Robot | Status | assigned => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|