Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
printing path and not fullpath
[simgrid.git] / examples / java / mutualExclusion / CMakeLists.txt
index b74eecc7945568c0d2fc84659670a7869b9647ac..2019a30626da40159215751df21f73448211c310 100644 (file)
@@ -15,7 +15,7 @@ if(enable_java)
     COMMENT "Building ${example}..."
     OUTPUT ${example}_compiled
     DEPENDS ${sources} simgrid-java_jar ${SIMGRID_JAR}
-    COMMAND ${JAVA_COMPILE} -cp ${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