cmake/Tests/PolicyScope/Bar.cmake
2024-11-11 15:18:55 +01:00

9 lines
269 B
CMake

cmake_minimum_required(VERSION 3.10)
# Make sure a policy set differently by our includer is now correct.
cmake_policy(GET CMP0003 cmp)
check(CMP0003 "NEW" "${cmp}")
# Test allowing the top-level file to not have cmake_minimum_required.
cmake_policy(SET CMP0000 OLD)