]> AND Public Git Repository - simgrid.git/blobdiff - examples/java/masterslave/CMakeLists.txt
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove unused fields.
[simgrid.git] / examples / java / masterslave / CMakeLists.txt
index e0173a3326bcfd70dfb8ab5ca76f97adec423b5e..c3083f64b4b4e8ff98175c56befc5527e2770393 100644 (file)
@@ -13,9 +13,10 @@ if(enable_java)
   add_custom_command(
     COMMENT "Building ${example}..."
     OUTPUT ${example}_compiled
-    DEPENDS ${sources} ${SIMGRID_JAR}
+    DEPENDS ${sources} SG_java_jar ${SIMGRID_JAR}
     COMMAND ${JAVA_COMPILE} -cp ${SIMGRID_JAR}
                              -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources}
+    COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled
     COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled
   )
   add_custom_target(${example} ALL DEPENDS ${example}_compiled)