[cmake-developers] [CMake 0013678]: The target property INCLUDE_DIRECTORIES overwrites the include_directories command values.
Mantis Bug Tracker
mantis at public.kitware.com
Mon Nov 12 05:10:27 EST 2012
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
======================================================================
More information about the cmake-developers
mailing list