[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 09/11: cmake: If Ice 3.4 found, check versi
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 09/11: cmake: If Ice 3.4 found, check version of GCC and disable if >= 4.7. |
Date: |
Thu, 9 Jan 2014 21:52:40 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch maint
in repository gnuradio.
commit 7fcf514bab5d62aefec0d7741c720af76666b3f1
Author: Tom Rondeau <address@hidden>
Date: Thu Jan 9 10:29:43 2014 -0500
cmake: If Ice 3.4 found, check version of GCC and disable if >= 4.7.
---
cmake/Modules/FindICE.cmake | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/cmake/Modules/FindICE.cmake b/cmake/Modules/FindICE.cmake
index 85144b3..d7c6f79 100644
--- a/cmake/Modules/FindICE.cmake
+++ b/cmake/Modules/FindICE.cmake
@@ -112,6 +112,18 @@ if(ICE_ICE AND ICE_ICEUTIL)
if(ICE_FOUND)
message(STATUS "Ice-3.4 found")
+ if(CMAKE_COMPILER_IS_GNUCXX)
+ execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version
+ OUTPUT_VARIABLE gcc_version)
+ string(REGEX MATCH "[0-9].[0-9].[0-9]" gcc_version_num ${gcc_version})
+ if(NOT ${gcc_version_num} VERSION_LESS "4.7")
+ message(STATUS "-- Found GCC version: ${gcc_version_num}")
+ message(STATUS "-- GCC incompatible with Ice 3.4, disabling
ControlPort")
+ set(ICE_FOUND FALSE)
+ return() # exit now
+ endif(NOT ${gcc_version_num} VERSION_LESS "4.7")
+ endif(CMAKE_COMPILER_IS_GNUCXX)
+
set(ICE_LIBRARIES ${ICE_LIBRARY})
set(ICE_INCLUDE_DIRS ${ICE_INCLUDE_DIR})
- [Commit-gnuradio] [gnuradio] branch maint updated (ccfd5aa -> 7bb1182), git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 01/11: runtime: Disable CPU_SET macros for FreeBSD., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 05/11: volk: some versions of clang have problems with cvtpi32_ps., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 03/11: qtgui: fixed naming of classes for long-term use., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 11/11: grc: fix variable vlen for grc generated hier blocks, git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 09/11: cmake: If Ice 3.4 found, check version of GCC and disable if >= 4.7.,
git <=
- [Commit-gnuradio] [gnuradio] 04/11: volk: clang sets GNUC_MINOR only to 2, so we need to check if we're building with clang. This patch enables xgetbv for clang >= 3.0., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 06/11: volk: test for clang version; if less than 3.2, disable SSE4a machine due to a bug in the compiler support., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 08/11: analog: additional docs for noise sources., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 10/11: volk: modifying tests for AVX and SSE4a support in compiler/CPU., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 07/11: filter: fixed an issue with filter delays for interp and rational_resampler filters., git, 2014/01/09
- [Commit-gnuradio] [gnuradio] 02/11: qtgui: fixed thread-safety in GRC variable-type blocks, git, 2014/01/09