Commit ba373bb2 authored by Philipp Götze's avatar Philipp Götze

🔧 Disable 'unknown attribute' warnings of Intel compiler'

parent 6712ce72
......@@ -42,6 +42,10 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS_DEBUG -g)
set(CMAKE_CXX_FLAGS_RELEASE -O3)
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Intel")
# wd1292 -> unknown attribute
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd1292")
endif()
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment