X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81c3c0394f8a6fa6ef9fbad74529ce5a82081c2a..ead2689dfad687ab5d189151dfd12ea979c42ae8:/examples/java/commTime/CMakeLists.txt diff --git a/examples/java/commTime/CMakeLists.txt b/examples/java/commTime/CMakeLists.txt index 2404c0f02f..320b5c8b84 100644 --- a/examples/java/commTime/CMakeLists.txt +++ b/examples/java/commTime/CMakeLists.txt @@ -12,9 +12,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)