Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Enable compile warnings for Java too.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Jan 2013 16:27:08 +0000 (17:27 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Jan 2013 16:27:08 +0000 (17:27 +0100)
buildtools/Cmake/Flags.cmake

index e8e8401..28a0cb4 100644 (file)
@@ -19,6 +19,8 @@ if(enable_compile_warnings)
   endif()
 
   set(CMAKE_Fortran_FLAGS "-Wall") # FIXME: Q&D hack
+
+  set(CMAKE_JAVA_COMPILE_FLAGS "-Xlint")
 endif()
 
 if(enable_compile_optimizations)