From: Arnaud Giersch Date: Tue, 18 Dec 2012 15:53:56 +0000 (+0100) Subject: Add -Wall to CMAKE_Fortran_FLAGS, unless enable_compile_warnings=OFF. X-Git-Tag: v3_9_rc1~86^2~92 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/581a88bba670ee2756e1f4986f55c863190d6930 Add -Wall to CMAKE_Fortran_FLAGS, unless enable_compile_warnings=OFF. This triggers lots of warnings, mainly about implicit function declarations, but I don't know how to fix them properly for now. --- diff --git a/buildtools/Cmake/Flags.cmake b/buildtools/Cmake/Flags.cmake index 546551eb30..e8e8401f00 100644 --- a/buildtools/Cmake/Flags.cmake +++ b/buildtools/Cmake/Flags.cmake @@ -17,6 +17,8 @@ if(enable_compile_warnings) if(CMAKE_C_COMPILER_ID STREQUAL "Clang") string(REPLACE "-Wclobbered " "" warnCFLAGS "${warnCFLAGS}") endif() + + set(CMAKE_Fortran_FLAGS "-Wall") # FIXME: Q&D hack endif() if(enable_compile_optimizations)