The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13678 
====================================================================== 
Reported By:                Micha Renner
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13678
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-12 05:10 EST
Last Modified:              2012-11-12 05:10 EST
====================================================================== 
Summary:                    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}) 
...

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-12 05:10 Micha Renner   New Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to