Removed GenerateExportHeader warnings about old compilers

These warnings tend to flood the dashboard submissions, and it is doing
what it should (degrade gracefully with older compilers).
This commit is contained in:
Marcus D. Hanwell 2013-02-20 11:48:12 -05:00
parent f7029572ca
commit 1e0891e28a
1 changed files with 0 additions and 4 deletions

View File

@ -156,16 +156,12 @@ macro(_test_compiler_hidden_visibility)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.2") if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.2")
set(GCC_TOO_OLD TRUE) set(GCC_TOO_OLD TRUE)
message(WARNING "GCC version older than 4.2")
elseif(CMAKE_COMPILER_IS_GNUC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "4.2") elseif(CMAKE_COMPILER_IS_GNUC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "4.2")
set(GCC_TOO_OLD TRUE) set(GCC_TOO_OLD TRUE)
message(WARNING "GCC version older than 4.2")
elseif(CMAKE_CXX_COMPILER_ID MATCHES Intel AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.0") elseif(CMAKE_CXX_COMPILER_ID MATCHES Intel AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12.0")
set(_INTEL_TOO_OLD TRUE) set(_INTEL_TOO_OLD TRUE)
message(WARNING "Intel compiler older than 12.0")
endif() endif()
# Exclude XL here because it misinterprets -fvisibility=hidden even though # Exclude XL here because it misinterprets -fvisibility=hidden even though
# the check_cxx_compiler_flag passes # the check_cxx_compiler_flag passes
# http://www.cdash.org/CDash/testDetails.php?test=109109951&build=1419259 # http://www.cdash.org/CDash/testDetails.php?test=109109951&build=1419259