CMake/Tests/RunCMake/configure_file/RerunCMake.cmake
Hugh Sorby e46e3442fd Makefiles: Re-run CMake if file configured in subdirectory is missing
Add files configured by all subdirectories to `CMAKE_MAKEFILE_PRODUCTS`
rather than just those from the top level.

Fixes: #19719
2020-02-14 08:50:15 -05:00

5 lines
220 B
CMake

message("Running CMake on RerunCMake") # write to stderr if cmake reruns
add_subdirectory(RerunCMake)
# make sure CMakeCache.txt is newer than ConfigureFileOutput.txt
execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 1)