From 142eaaf7f2a0d6a0876a7d5a4e3bd75b4d93673e Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Wed, 25 May 2022 16:02:06 +0000 Subject: [PATCH] #1807: change cmake intelllvm compiler flag --- cmake-modules/SetCXXCompilerFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake-modules/SetCXXCompilerFlags.cmake b/cmake-modules/SetCXXCompilerFlags.cmake index b02800d518..e8518475b0 100644 --- a/cmake-modules/SetCXXCompilerFlags.cmake +++ b/cmake-modules/SetCXXCompilerFlags.cmake @@ -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 ()