cmake: Set OLD for policy 26
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 11 Nov 2015 18:40:52 +0100
changeset 11371 78156dc2cab3
parent 11370 7ab863821864
child 11372 d94f65b66c60
cmake: Set OLD for policy 26 We need to get target location because of our bundled dependencies.
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)