Fix condition for -Wno-attributes (regression)

This commit is contained in:
Nekotekina 2021-04-17 16:26:41 +03:00
parent 9d4fcbf946
commit d623720f4d

View File

@ -59,7 +59,7 @@ else()
endif()
#TODO Clean the code so these are removed
if ((not ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU") OR (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.1))
if (NOT (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU") OR (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.1))
add_compile_options(-Wno-attributes)
endif()