diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-26 13:11:23 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-04 10:28:57 (GMT) |
commit | 272a20f8e554d7c4136119f252f163bcfc64dac0 (patch) | |
tree | 91e65cdd375642ed4083bcfa5aa87f2eeba97ac1 /Tests/CMakeCommands/target_compile_definitions | |
parent | 03d842a982267f75cf77810de2c693c36e58574c (diff) | |
download | CMake-272a20f8e554d7c4136119f252f163bcfc64dac0.zip CMake-272a20f8e554d7c4136119f252f163bcfc64dac0.tar.gz CMake-272a20f8e554d7c4136119f252f163bcfc64dac0.tar.bz2 |
cmTarget: Don't update IMPORTED target compilation properties
The include_directories() and add_compile_options() commands
should not append to the corresponding target property for IMPORTED
targets. This is already the case for add_definitions().
Diffstat (limited to 'Tests/CMakeCommands/target_compile_definitions')
-rw-r--r-- | Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt b/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt index 900dbd0..14d40aa 100644 --- a/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt +++ b/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt @@ -25,3 +25,10 @@ target_compile_definitions(consumer target_compile_definitions(consumer PRIVATE ) + +add_definitions(-DSOME_DEF) +add_library(imp UNKNOWN IMPORTED) +get_target_property(_res imp COMPILE_DEFINITIONS) +if (_res) + message(SEND_ERROR "add_definitions populated the COMPILE_DEFINITIONS target property") +endif() |