Error when defering `cmake_policy(POP)`
Given the following snippet:
cmake_minimum_required(VERSION 3.21)
project(policy)
cmake_policy(PUSH)
cmake_language(DEFER CALL cmake_policy POP)
CMake will complain
CMake Error at CMakeLists.txt:5 (cmake_policy):
cmake_policy POP without matching PUSH
Call Stack (most recent call first):
CMakeLists.txt:DEFERRED
CMake Error in CMakeLists.txt:
cmake_policy PUSH without matching POP
However, I think this is counter intuitive and making it work is more useful than the current behavior.