summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0027/CMP0027-NEW.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-06-18 14:33:33 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-18 14:11:49 (GMT)
commit70ae6dfd922e53e759ec6a58424dfdbb9c12dee1 (patch)
treecec185445680d3264355302f5bc380ab7181ce30 /Tests/RunCMake/CMP0027/CMP0027-NEW.cmake
parent36d8d987c705dd693454f3157f7d8c0f50b9f0ff (diff)
downloadCMake-70ae6dfd922e53e759ec6a58424dfdbb9c12dee1.zip
CMake-70ae6dfd922e53e759ec6a58424dfdbb9c12dee1.tar.gz
CMake-70ae6dfd922e53e759ec6a58424dfdbb9c12dee1.tar.bz2
Handle genexes when evaluating INTERFACE_INCLUDE_DIRECTORIES errors.
Diffstat (limited to 'Tests/RunCMake/CMP0027/CMP0027-NEW.cmake')
-rw-r--r--Tests/RunCMake/CMP0027/CMP0027-NEW.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0027/CMP0027-NEW.cmake b/Tests/RunCMake/CMP0027/CMP0027-NEW.cmake
new file mode 100644
index 0000000..8245085
--- /dev/null
+++ b/Tests/RunCMake/CMP0027/CMP0027-NEW.cmake
@@ -0,0 +1,10 @@
+
+enable_language(CXX)
+
+cmake_policy(SET CMP0027 NEW)
+
+add_library(testTarget UNKNOWN IMPORTED)
+set_property(TARGET testTarget PROPERTY INTERFACE_INCLUDE_DIRECTORIES "/does/not/exist")
+
+add_library(userTarget "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp")
+target_link_libraries(userTarget PRIVATE $<1:testTarget>)