diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-14 17:08:27 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-14 19:38:29 (GMT) |
commit | b85d3b66c63afa1ce7f30439deee524241b1efdc (patch) | |
tree | 3fc468657faa5c66183b70ba54f4962dcba6a19e /Tests/RunCMake/install/CMP0062-OLD.cmake | |
parent | 501c237a83001a8783b2249bd5f5066c3472a2aa (diff) | |
download | CMake-b85d3b66c63afa1ce7f30439deee524241b1efdc.zip CMake-b85d3b66c63afa1ce7f30439deee524241b1efdc.tar.gz CMake-b85d3b66c63afa1ce7f30439deee524241b1efdc.tar.bz2 |
install: Disallow installing export() result.
Diffstat (limited to 'Tests/RunCMake/install/CMP0062-OLD.cmake')
-rw-r--r-- | Tests/RunCMake/install/CMP0062-OLD.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/CMP0062-OLD.cmake b/Tests/RunCMake/install/CMP0062-OLD.cmake new file mode 100644 index 0000000..94b809a --- /dev/null +++ b/Tests/RunCMake/install/CMP0062-OLD.cmake @@ -0,0 +1,6 @@ + +cmake_policy(SET CMP0062 OLD) + +add_library(iface INTERFACE) +export(TARGETS iface FILE "${CMAKE_CURRENT_BINARY_DIR}/exported.cmake") +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/exported.cmake" DESTINATION cmake) |