| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0013678 | CMake | CMake | public | 2012-11-12 05:10 | 2013-04-17 08:54 | ||||
| Reporter | Micha Renner | ||||||||
| Assigned To | David Cole | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | no change required | ||||||
| Platform | All | OS | OS Version | ||||||
| Product Version | |||||||||
| Target Version | CMake 2.8.11 | Fixed in Version | CMake 2.8.11 | ||||||
| Summary | 0013678: The target property INCLUDE_DIRECTORIES overwrites the include_directories command values. | ||||||||
| Description | A better way would have been that the values of the include_directories command would appended to the values of the target property INCLUDE_DIRECTORIES, as it is with the COMPILE_DEFINITIONS property and the ADD_DEFINITION command. # Example INCLUDE_DIRECTORIES(general_include_directories) # Projet A ... # Overwrites INCLUDE_DIRECTORIES command SET_TARGET_PROPERTIES(ProA PROPERTIES INCLUDE_DIRECTORIES ${ProjAIncludeDirs}) ... # Projet B ... SET_TARGET_PROPERTIES(ProB PROPERTIES INCLUDE_DIRECTORIES ${ProjBIncludeDirs}) ... | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0031528) David Cole (manager) 2012-11-12 11:07 |
If you would like to APPEND, simply use set_property with the APPEND keyword. http://cmake.org/cmake/help/v2.8.10/cmake.html#command:set_property [^] Without APPEND, you're *setting* the property directly. With APPEND, you're adding to the existing directories that are already in the property... We did it that way on purpose so you could do either. |
|
(0031529) David Cole (manager) 2012-11-12 11:07 |
Please see my previous note. This behavior you are observing is correct, and by design. |
|
(0032866) Robert Maynard (manager) 2013-04-17 08:54 |
Closing resolved issues that have not been updated in more than 4 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2012-11-12 05:10 | Micha Renner | New Issue | |
| 2012-11-12 11:07 | David Cole | Note Added: 0031528 | |
| 2012-11-12 11:07 | David Cole | Assigned To | => David Cole |
| 2012-11-12 11:07 | David Cole | Status | new => assigned |
| 2012-11-12 11:07 | David Cole | Note Added: 0031529 | |
| 2012-11-12 11:07 | David Cole | Status | assigned => resolved |
| 2012-11-12 11:07 | David Cole | Fixed in Version | => CMake 2.8.11 |
| 2012-11-12 11:07 | David Cole | Resolution | open => no change required |
| 2012-11-12 11:08 | David Cole | Target Version | => CMake 2.8.11 |
| 2013-04-17 08:54 | Robert Maynard | Note Added: 0032866 | |
| 2013-04-17 08:54 | Robert Maynard | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |