silence cmake 3.0+ warnings on LOCATION attribute
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Tue, 18 Nov 2014 12:39:59 +0000 (15:39 +0300)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Tue, 18 Nov 2014 13:18:22 +0000 (16:18 +0300)
CMakeLists.txt

index 9e61b65..efe56c1 100644 (file)
@@ -38,6 +38,11 @@ if(POLICY CMP0022)
   cmake_policy(SET CMP0022 OLD)
 endif()
 
+if(POLICY CMP0026)
+  # silence cmake 3.0+ warnings about reading LOCATION attribute
+  cmake_policy(SET CMP0026 OLD)
+endif()
+
 # must go before the project command
 set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
 if(DEFINED CMAKE_BUILD_TYPE)