cmake/Tests/RunCMake/File_Generate/AdjacentInOut.cmake

7 lines
343 B
CMake
Raw Normal View History

2021-09-14 00:13:48 +02:00
cmake_policy(SET CMP0070 NEW)
if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/AdjacentInOut.txt")
message(FATAL_ERROR "CMake should not re-run during the build!")
endif()
configure_file(AdjacentInOut.in ${CMAKE_CURRENT_BINARY_DIR}/AdjacentInOut.txt.tmp)
file(GENERATE OUTPUT AdjacentInOut.txt INPUT ${CMAKE_CURRENT_BINARY_DIR}/AdjacentInOut.txt.tmp)