Skip to content

Commit

Permalink
Merge pull request #2935 from WardF/gh2700.wif
Browse files Browse the repository at this point in the history
Add compiler flag to fix infinities issue with intel compilers.
  • Loading branch information
WardF authored Jun 12, 2024
2 parents 6abcddb + effdd8a commit be009ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ include(GenerateExportHeader)
# Compiler and Linker Configuration
################################

# Set in support of https://github.com/Unidata/netcdf-c/issues/2700
if(${CMAKE_C_COMPILER_ID} MATCHES "Intel")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fhonor-infinities")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fhonor-infinities")
endif()

option(NETCDF_FIND_SHARED_LIBS "Find dynamically-built versions of dependent libraries" ${BUILD_SHARED_LIBS})

##
Expand Down

0 comments on commit be009ed

Please sign in to comment.