summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/CMP0062-NEW.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-14 17:08:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-14 19:38:29 (GMT)
commitb85d3b66c63afa1ce7f30439deee524241b1efdc (patch)
tree3fc468657faa5c66183b70ba54f4962dcba6a19e /Tests/RunCMake/install/CMP0062-NEW.cmake
parent501c237a83001a8783b2249bd5f5066c3472a2aa (diff)
downloadCMake-b85d3b66c63afa1ce7f30439deee524241b1efdc.zip
CMake-b85d3b66c63afa1ce7f30439deee524241b1efdc.tar.gz
CMake-b85d3b66c63afa1ce7f30439deee524241b1efdc.tar.bz2
install: Disallow installing export() result.
Diffstat (limited to 'Tests/RunCMake/install/CMP0062-NEW.cmake')
-rw-r--r--Tests/RunCMake/install/CMP0062-NEW.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/CMP0062-NEW.cmake b/Tests/RunCMake/install/CMP0062-NEW.cmake
new file mode 100644
index 0000000..a696f56
--- /dev/null
+++ b/Tests/RunCMake/install/CMP0062-NEW.cmake
@@ -0,0 +1,6 @@
+
+cmake_policy(SET CMP0062 NEW)
+
+add_library(iface INTERFACE)
+export(TARGETS iface FILE "${CMAKE_CURRENT_BINARY_DIR}/exported.cmake")
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/exported.cmake" DESTINATION cmake)