[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/01: utils: Set cmake policies to suppres
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/01: utils: Set cmake policies to suppress warnings for OOT modules. |
Date: |
Sun, 27 Nov 2016 22:41:16 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 10def57e006b871094f4e06dcd565a10ca2c20e5
Author: Ron Economos <address@hidden>
Date: Tue Nov 22 14:22:47 2016 -0800
utils: Set cmake policies to suppress warnings for OOT modules.
---
gr-utils/python/modtool/gr-newmod/CMakeLists.txt | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
index bde9dc0..3f316a7 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
########################################################################