Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enable compile warnings for Java too.
[simgrid.git] / buildtools / Cmake / Flags.cmake
index 546551e..28a0cb4 100644 (file)
@@ -17,6 +17,10 @@ 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
+
+  set(CMAKE_JAVA_COMPILE_FLAGS "-Xlint")
 endif()
 
 if(enable_compile_optimizations)