# HG changeset patch # User Vittorio Giovara # Date 1447263652 -3600 # Node ID 78156dc2cab3fab7704b3c4a98cc3352c8d29319 # Parent 7ab863821864eca5a6f246d28b7695141336239f cmake: Set OLD for policy 26 We need to get target location because of our bundled dependencies. diff -r 7ab863821864 -r 78156dc2cab3 CMakeLists.txt --- a/CMakeLists.txt Tue Nov 10 13:53:40 2015 +0100 +++ b/CMakeLists.txt Wed Nov 11 18:40:52 2015 +0100 @@ -8,6 +8,12 @@ endif() endforeach() +foreach(hwpolicy CMP0026) + if(POLICY ${hwpolicy}) + cmake_policy(SET ${hwpolicy} OLD) + endif() +endforeach() + set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules") include(${CMAKE_MODULE_PATH}/utils.cmake)