Don't use -restrict for icpx

This commit is contained in:
Daniel Arndt
2021-10-26 13:08:03 -04:00
parent 84666543d1
commit 3d9e4638a7
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Need -restrict with Intel compilers
if((CMAKE_CXX_COMPILER_ID STREQUAL "Intel") OR (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM"))
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -restrict")
endif()