Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add -Wall to CMAKE_Fortran_FLAGS, unless enable_compile_warnings=OFF.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 18 Dec 2012 15:53:56 +0000 (16:53 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 18 Dec 2012 15:59:46 +0000 (16:59 +0100)
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

index 546551e..e8e8401 100644 (file)
@@ -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)