RESET parameter to cmake_push_check_state() does not work.
In the cmake_push_check_state()
macro (here), ARGC and ARGV0 macro parameters are used in the if
command as if they were regular variables:
https://gitlab.kitware.com/cmake/cmake/blame/master/Modules/CMakePushCheckState.cmake#L65
if (ARGC GREATER 0 AND ARGV0 STREQUAL "RESET")
cmake_reset_check_state()
endif()
https://cmake.org/cmake/help/v3.9/command/macro.html#macro-argument-caveats.
Therefore the RESET parameter does not behave as expected.