Skip to content

Commit

Permalink
Add -Wno-attributes to CXX flags
Browse files Browse the repository at this point in the history
  • Loading branch information
q4a committed Sep 18, 2018
1 parent f058208 commit 0fe4d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
endif()
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17 -Wno-attributes")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") This is for the future versions
#set(CMAKE_CXX_STANDARD 14) #Otherwise adds -std=gnu++11 and breaks successful building
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down

0 comments on commit 0fe4d3e

Please sign in to comment.