Skip to content

Commit

Permalink
Enable warnings with clang as well
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jul 30, 2014
1 parent a744744 commit f520dd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
# Clang C++11 support
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")

add_definitions(
-Wall
-Wextra
-Wno-unused-parameter
)

if(CMAKE_BUILD_TYPE MATCHES "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
set(CMAKE_EXE_LINKER_FLAGS "-s")
Expand Down

0 comments on commit f520dd9

Please sign in to comment.