cmake sharedlib:add -Wall flag

This commit is contained in:
andy5995
2018-10-03 23:21:07 -05:00
committed by Andy Alt
parent ae2111626d
commit 50a9339e09

View File

@@ -7,7 +7,7 @@ add_definitions("-DDATADIR=${INSTALL_DIR_DATA}")
# On Travis, the build fails on osx and Ubuntu trusty using # On Travis, the build fails on osx and Ubuntu trusty using
# clang 5.0 unless the -std=c++11 if used # clang 5.0 unless the -std=c++11 if used
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
if(WANT_USE_STREFLOP) if(WANT_USE_STREFLOP)
# IMPORTANT: should come BEFORE finding packages # IMPORTANT: should come BEFORE finding packages