diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-04-10 16:12:56 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-04-10 16:12:56 (GMT) |
commit | 5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0 (patch) | |
tree | 10461d8ab401216ed1fe60ebc3823422a4af8175 /Tests/IncludeDirectories | |
parent | a5b39fd3c68b61a33957b03807db14b02cdea4c4 (diff) | |
download | CMake-5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0.zip CMake-5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0.tar.gz CMake-5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0.tar.bz2 |
Fix clearing of the INCLUDE_DIRECTORIES DIRECTORY property.
This was broken by commit 18a3195a (Keep track of INCLUDE_DIRECTORIES
as a vector of structs., 2012-11-19).
Diffstat (limited to 'Tests/IncludeDirectories')
-rw-r--r-- | Tests/IncludeDirectories/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/IncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/CMakeLists.txt index 60f5e5e..8a60f17 100644 --- a/Tests/IncludeDirectories/CMakeLists.txt +++ b/Tests/IncludeDirectories/CMakeLists.txt @@ -47,3 +47,14 @@ else() endif() add_subdirectory(TargetIncludeDirectories) + +set_property(DIRECTORY PROPERTY INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}") +get_property(propContent DIRECTORY PROPERTY INCLUDE_DIRECTORIES) +if (NOT propContent STREQUAL "${CMAKE_BINARY_DIR}") + message(SEND_ERROR "Setting DIRECTORY property failed.") +endif() +set_property(DIRECTORY PROPERTY INCLUDE_DIRECTORIES) +get_property(propContentAfter DIRECTORY PROPERTY INCLUDE_DIRECTORIES) +if (NOT propContentAfter STREQUAL "") + message(SEND_ERROR "Clearing DIRECTORY property failed.") +endif() |