diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-02-07 00:49:17 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-02-07 15:21:09 (GMT) |
commit | 3a298c0bf4e3e86f4705b9255bf032cf70d5cadb (patch) | |
tree | 19b387133a2fa8e7b6e496c72380312c1ceb7ada /Source/cmake.h | |
parent | 655e98bf7149eb3757a0587409076326edeb9c04 (diff) | |
download | CMake-3a298c0bf4e3e86f4705b9255bf032cf70d5cadb.zip CMake-3a298c0bf4e3e86f4705b9255bf032cf70d5cadb.tar.gz CMake-3a298c0bf4e3e86f4705b9255bf032cf70d5cadb.tar.bz2 |
Fix generation of COMPILE_DEFINITIONS in DependInfo.cmake.
As INTERFACE_COMPILE_DEFINITIONS are now possible, we can have
situations like this:
add_library(foo ...)
add_library(bar ...)
target_link_libraries(foo bar)
target_compile_definitions(bar INTERFACE SOME_DEF)
The INTERFACE_COMPILE_DEFINITIONS of bar determine how foo should be
compiled, and if they change, foo should be rebuilt.
Additionally, as of commit d1446ca7 (Append the COMPILE_DEFINITIONS
from the Makefile to all targets., 2012-09-17), we don't need to
read definitions from the makefile if we read them from the target,
so also de-duplicate the cached info.
The DependInfo for INTERFACE_INCLUDE_DIRECTORIES is already handled
correctly.
Diffstat (limited to 'Source/cmake.h')
0 files changed, 0 insertions, 0 deletions