Skip to content
Snippets Groups Projects
Commit 0acdd239 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't warn about deprecated GLU calls for now

parent 9e125559
No related branches found
No related tags found
No related merge requests found
...@@ -1083,16 +1083,20 @@ endif(WIN32 OR CYGWIN) ...@@ -1083,16 +1083,20 @@ endif(WIN32 OR CYGWIN)
# force full warnings to encourage everybody to write clean(er) code # force full warnings to encourage everybody to write clean(er) code
check_cxx_compiler_flag("-Wall" WALL) check_cxx_compiler_flag("-Wall" WALL)
check_cxx_compiler_flag("-Wint-to-void-pointer-cast" WCAST) check_cxx_compiler_flag("-Wint-to-void-pointer-cast" WCAST)
check_cxx_compiler_flag("-Wdeprecated-declarations" WDEPREC)
if(WALL AND NOT MSVC) if(WALL AND NOT MSVC)
file(GLOB_RECURSE WALL_SRC Common/*.cpp Fltk/*.cpp FunctionSpace/*.cpp file(GLOB_RECURSE WALL_SRC Common/*.cpp Fltk/*.cpp FunctionSpace/*.cpp
Geo/*.cpp Graphics/*.cpp Mesh/*.cpp Numeric/*.cpp Parser/*.cpp Geo/*.cpp Graphics/*.cpp Mesh/*.cpp Numeric/*.cpp Parser/*.cpp
Plugin/*.cpp Post/*.cpp Qt/*.cpp Solver/*.cpp) Plugin/*.cpp Post/*.cpp Qt/*.cpp Solver/*.cpp)
set(WF "-Wall")
if(WCAST) if(WCAST)
set_source_files_properties(${WALL_SRC} PROPERTIES COMPILE_FLAGS set(WF "${WF} -Wno-int-to-void-pointer-cast")
"-Wall -Wno-int-to-void-pointer-cast")
else(WCAST)
set_source_files_properties(${WALL_SRC} PROPERTIES COMPILE_FLAGS "-Wall")
endif(WCAST) endif(WCAST)
if(WDEPREC)
# FIXME: remove this when we have fixed the deprecated GLU code for OpenGL3
set(WF "${WF} -Wno-deprecated-declarations")
endif(WDEPREC)
set_source_files_properties(${WALL_SRC} PROPERTIES COMPILE_FLAGS ${WF})
endif(WALL AND NOT MSVC) endif(WALL AND NOT MSVC)
# don't issue warnings for contributed libraries # don't issue warnings for contributed libraries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment