I’m doing something like this:
Script.cmake I’m doing a
if (var IN_LIST list) which, according to cmake warnings, requires CMP0057 being set to NEW. Yet it seems that
Script.cmake does not inherit the calling CMakeLists policies.
Setting CMP0057 inside
Script.cmake rises a new warning implying policy CMP0011. I can silence the warning by setting CMP0011 to NEW inside
Script.cmake but is it the right place to do it?
cmake_policy documentation (and CMP0011) left me confused.