cmake: Set OLD for policy 26 0.9.22
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 11 Nov 2015 18:40:52 +0100
branch0.9.22
changeset 11574 5eae0a831425
parent 11566 d80378a6ab31
child 11593 72be390795db
cmake: Set OLD for policy 26 We need to get target location because of our bundled dependencies.
CMakeLists.txt
--- a/CMakeLists.txt	Mon Feb 22 15:56:32 2016 -0500
+++ 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)