summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_include_directories
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-07-31 14:02:07 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-07-31 14:06:34 (GMT)
commitc0b868220084ad6d2ca88a4fdd9564f887374fc2 (patch)
tree3cd1f4e3561f796e889a968eb8c1e3827372846f /Tests/CMakeCommands/target_include_directories
parent0cecc7b485774be084a6d5a72e743ed9893daa5d (diff)
downloadCMake-c0b868220084ad6d2ca88a4fdd9564f887374fc2.zip
CMake-c0b868220084ad6d2ca88a4fdd9564f887374fc2.tar.gz
CMake-c0b868220084ad6d2ca88a4fdd9564f887374fc2.tar.bz2
Allow target commands to be invoked with no items (#14325).
Code such as target_include_directories(foo PRIVATE ${items}) should not work or break based on whether items is defined or not.
Diffstat (limited to 'Tests/CMakeCommands/target_include_directories')
-rw-r--r--Tests/CMakeCommands/target_include_directories/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_include_directories/CMakeLists.txt b/Tests/CMakeCommands/target_include_directories/CMakeLists.txt
index c03f0f8..21b8e15 100644
--- a/Tests/CMakeCommands/target_include_directories/CMakeLists.txt
+++ b/Tests/CMakeCommands/target_include_directories/CMakeLists.txt
@@ -47,3 +47,17 @@ target_include_directories(consumer
$<TARGET_PROPERTY:target_include_directories,INTERFACE_INCLUDE_DIRECTORIES>
relative_dir
)
+
+# Test no items
+target_include_directories(consumer
+ PRIVATE
+)
+target_include_directories(consumer
+ BEFORE PRIVATE
+)
+target_include_directories(consumer
+ SYSTEM BEFORE PRIVATE
+)
+target_include_directories(consumer
+ SYSTEM PRIVATE
+)