summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/gr-newmod
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2016-11-22 14:22:47 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2016-11-27 14:31:19 -0800
commit10def57e006b871094f4e06dcd565a10ca2c20e5 (patch)
treef32f2b95f4ad37a98716b05a360b0f7b48b40734 /gr-utils/python/modtool/gr-newmod
parentefea6826d09820876c86685583ffd8d94a9b4560 (diff)
utils: Set cmake policies to suppress warnings for OOT modules.
Diffstat (limited to 'gr-utils/python/modtool/gr-newmod')
-rw-r--r--gr-utils/python/modtool/gr-newmod/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
index bde9dc0c0f..3f316a78b4 100644
--- a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
+++ b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
@@ -46,6 +46,23 @@ set(VERSION_INFO_API_COMPAT 0)
set(VERSION_INFO_MINOR_VERSION 0)
set(VERSION_INFO_MAINT_VERSION git)
+# Set cmake policies.
+# This will suppress developer warnings during the cmake process that can occur
+# if a newer cmake version than the minimum is used.
+
+if(POLICY CMP0026)
+ cmake_policy(SET CMP0026 OLD)
+endif()
+if(POLICY CMP0043)
+ cmake_policy(SET CMP0043 OLD)
+endif()
+if(POLICY CMP0045)
+ cmake_policy(SET CMP0045 OLD)
+endif()
+if(POLICY CMP0046)
+ cmake_policy(SET CMP0046 OLD)
+endif()
+
########################################################################
# Compiler specific setup
########################################################################