diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-07-31 14:02:07 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-07-31 14:06:34 (GMT) |
commit | c0b868220084ad6d2ca88a4fdd9564f887374fc2 (patch) | |
tree | 3cd1f4e3561f796e889a968eb8c1e3827372846f /Tests/CMakeCommands/target_compile_options | |
parent | 0cecc7b485774be084a6d5a72e743ed9893daa5d (diff) | |
download | CMake-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_compile_options')
-rw-r--r-- | Tests/CMakeCommands/target_compile_options/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_options/CMakeLists.txt b/Tests/CMakeCommands/target_compile_options/CMakeLists.txt index 06a48fb..1d04639 100644 --- a/Tests/CMakeCommands/target_compile_options/CMakeLists.txt +++ b/Tests/CMakeCommands/target_compile_options/CMakeLists.txt @@ -33,3 +33,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU") "DO_GNU_TESTS" ) endif() + +# Test no items +target_compile_options(consumer + PRIVATE +) |