cmake_dependent_option conflicting with POLICY CMP0077
I'm trying to set configure a project. By setting a non-cache variable.
This project supports uses the use of the new policy CMP0077.
However, I tried setting an option created by 'cmake_dependent_option' and it failed. With this warning:
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.16/Modules/CMakeDependentOption.cmake:39 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, option is clearing the normal variable 'SUPER_COOL_NDA_OPTION'. Call Stack (most recent call first): C:/NDA/CMakeLists.txt:90 (cmake_dependent_option) This warning is for project developers. Use -Wno-dev to suppress it.