CMake/Tests/RunCMake/PolicyScope/parent-dir-generate-time.cmake

8 lines
143 B
CMake

enable_language(CXX)
add_subdirectory(dir1)
# This affects dir1 despite being set after the add_subdirectory.
cmake_policy(SET CMP0044 NEW)