Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add -Wall to CMAKE_Fortran_FLAGS, unless enable_compile_warnings=OFF.
[simgrid.git] / 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)