diff options
author | Brad King <brad.king@kitware.com> | 2013-05-21 19:22:27 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-05-21 19:22:27 (GMT) |
commit | 4825d70e830395ebff09a7fba73eb6ff5661048b (patch) | |
tree | 5c71bb45a6735aee0b90da984af6f47bb68742b0 /Tests | |
parent | d2cd362c31aafb157970c04bf507bafcf475f89a (diff) | |
parent | 2f84dfec93b6a5d8b4db89bafe09688382b96997 (diff) | |
download | CMake-4825d70e830395ebff09a7fba73eb6ff5661048b.zip CMake-4825d70e830395ebff09a7fba73eb6ff5661048b.tar.gz CMake-4825d70e830395ebff09a7fba73eb6ff5661048b.tar.bz2 |
Merge topic 'fix-include_directories-whitespace-handling'
2f84dfe include_directories: Fix handling of empty or space-only entries
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/IncludeDirectories/CMakeLists.txt | 11 | ||||
-rw-r--r-- | Tests/IncludeDirectories/empty.cpp | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Tests/IncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/CMakeLists.txt index 8a60f17..3e3ecc9 100644 --- a/Tests/IncludeDirectories/CMakeLists.txt +++ b/Tests/IncludeDirectories/CMakeLists.txt @@ -58,3 +58,14 @@ get_property(propContentAfter DIRECTORY PROPERTY INCLUDE_DIRECTORIES) if (NOT propContentAfter STREQUAL "") message(SEND_ERROR "Clearing DIRECTORY property failed.") endif() + +add_library(empty_entry_test SHARED empty.cpp) +set_target_properties(empty_entry_test PROPERTIES INCLUDE_DIRECTORIES "") +include_directories(/one/two + " " + " " +) +get_target_property(incs empty_entry_test INCLUDE_DIRECTORIES) +if (NOT incs STREQUAL ";/one/two") + message(SEND_ERROR "Empty include_directories entry was not ignored.") +endif() diff --git a/Tests/IncludeDirectories/empty.cpp b/Tests/IncludeDirectories/empty.cpp new file mode 100644 index 0000000..ab32cf6 --- /dev/null +++ b/Tests/IncludeDirectories/empty.cpp @@ -0,0 +1 @@ +// No content |