Skip to content

Commit

Permalink
#1202: add -fhonor-nans to icpx flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 5, 2021
1 parent d592e52 commit d693a10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake-modules/SetCXXCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
endif()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL IntelLLVM AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 2021.3.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fhonor-infinites")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fhonor-nans")
elseif (NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel")
message(FATAL_ERROR "Your C++ compiler may not support C++14.")
endif ()
Expand Down

0 comments on commit d693a10

Please sign in to comment.