CMake/Tests/RunCMake/install/CMP0062-NEW.cmake

7 lines
211 B
CMake
Raw Normal View History

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)