Skip to content

Commit

Permalink
fix cmake warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pefoley2 committed Nov 21, 2016
1 parent 64edc81 commit 3c72d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/warnings.cmake
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wpointer-arith -Wcast-qual -Wo
if (CMAKE_C_COMPILER_ID MATCHES GNU)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wcast-align -Wno-non-template-friend -Wno-unused-local-typedefs -Wno-deprecated-declarations")
endif (CMAKE_C_COMPILER_ID)
endif (CMAKE_C_COMPILER_ID MATCHES GNU)
elseif (MSVC)
message(STATUS "TODO: Set up custom warning flags for MSVC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4251 /wd4091 /wd4503")
Expand Down

0 comments on commit 3c72d5b

Please sign in to comment.