diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-01-29 16:23:31 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-01-29 18:34:04 (GMT) |
commit | 7bf490e9bb6128082aa178f28691b3fc418322fe (patch) | |
tree | a8f701d2db9a3960cceb1596705906c19ba42df4 /Tests/CMakeCommands/target_compile_definitions | |
parent | f6b16d4b0642d26111cddff714b464e22b715482 (diff) | |
download | CMake-7bf490e9bb6128082aa178f28691b3fc418322fe.zip CMake-7bf490e9bb6128082aa178f28691b3fc418322fe.tar.gz CMake-7bf490e9bb6128082aa178f28691b3fc418322fe.tar.bz2 |
Make subclasses responsible for joining content.
This way we can add handling of relative/absolute paths and of
-D in compile definitions.
Diffstat (limited to 'Tests/CMakeCommands/target_compile_definitions')
-rw-r--r-- | Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/CMakeCommands/target_compile_definitions/consumer.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt b/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt index 00cba44..8a4437b 100644 --- a/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt +++ b/Tests/CMakeCommands/target_compile_definitions/CMakeLists.txt @@ -20,4 +20,5 @@ target_compile_definitions(consumer PRIVATE $<TARGET_PROPERTY:target_compile_definitions,INTERFACE_COMPILE_DEFINITIONS> $<$<TARGET_DEFINED:notdefined>:SHOULD_NOT_BE_DEFINED> $<$<TARGET_DEFINED:target_compile_definitions>:SHOULD_BE_DEFINED> + -DDASH_D_DEFINE ) diff --git a/Tests/CMakeCommands/target_compile_definitions/consumer.cpp b/Tests/CMakeCommands/target_compile_definitions/consumer.cpp index f835b6c..1a46aa5 100644 --- a/Tests/CMakeCommands/target_compile_definitions/consumer.cpp +++ b/Tests/CMakeCommands/target_compile_definitions/consumer.cpp @@ -19,4 +19,8 @@ #error Expected SHOULD_BE_DEFINED #endif +#ifndef DASH_D_DEFINE +#error Expected DASH_D_DEFINE +#endif + int main() { return 0; } |