On 18.06.2016 13:03, Alexander Shukaev wrote:
if(POLICY CMP0011)
cmake_policy(SET CMP0011 NEW)
endif()
if(POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
CMakeLists.txt:
include(xxx)
cmake_minimum_required(VERSION 3.1.0)
and it still works. Is it because the version is high enough so it
does not reset policies?
The cmake_minimum_required() call will set CMP0011 to NEW and will unset
CMP0063.
This is because CMP0011 was introduced before CMake 3.1.0 (the version
you require) and CMP0063 was introduced afterwards (in CMake 3.3).
Given your sequence of calls none of the previous cmake_policy(SET)
calls will have any effect.
Nils
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake