summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/CMP0062-NEW.cmake
diff options
context:
space:
mode:
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)