From 581a88bba670ee2756e1f4986f55c863190d6930 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 18 Dec 2012 16:53:56 +0100 Subject: [PATCH 1/1] 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. --- buildtools/Cmake/Flags.cmake | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.20.1