X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ead2689dfad687ab5d189151dfd12ea979c42ae8..8199067e1f2a6ea4d3d8a38df1a4fb3f25d364da:/examples/java/priority/CMakeLists.txt diff --git a/examples/java/priority/CMakeLists.txt b/examples/java/priority/CMakeLists.txt index a93beec0bb..202d0e58e1 100644 --- a/examples/java/priority/CMakeLists.txt +++ b/examples/java/priority/CMakeLists.txt @@ -10,8 +10,8 @@ if(enable_java) add_custom_command( COMMENT "Building ${example}..." OUTPUT ${example}_compiled - DEPENDS ${sources} SG_java_jar ${SIMGRID_JAR} - COMMAND ${JAVA_COMPILE} -cp ${SIMGRID_JAR} + DEPENDS ${sources} simgrid-java_jar ${SIMGRID_JAR} + COMMAND ${JAVA_COMPILE} -classpath ${SIMGRID_JAR} -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources} COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled