Skip to content

Commit

Permalink
#1807: change cmake intelllvm compiler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed May 25, 2022
1 parent 6f7f94c commit 142eaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake-modules/SetCXXCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function(set_darma_compiler_flags vt_target)
list(APPEND TARGET_PUBLIC_CXX_FLAGS -stdlib=libc++)
endif ()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL IntelLLVM AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 2021.3.0)
list(APPEND TARGET_PRIVATE_CXX_FLAGS -fhonor-infinites -fhonor-nans)
list(APPEND TARGET_PUBLIC_CXX_FLAGS -fhonor-infinites -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 142eaaf

Please sign in to comment.