ENH: use the right name for the test
This commit is contained in:
parent
e5fdf8335c
commit
1198106e3c
|
@ -24,13 +24,13 @@ IF(OLD_CUSTOM_COMMAND_WAY)
|
||||||
DEPENDS ${hello_BINARY_DIR}/A.class
|
DEPENDS ${hello_BINARY_DIR}/A.class
|
||||||
COMMAND ${CMAKE_Java_COMPILER} ARGS -classpath . -d ${hello_BINARY_DIR} ${hello_SOURCE_DIR}/HelloWorld.java)
|
COMMAND ${CMAKE_Java_COMPILER} ARGS -classpath . -d ${hello_BINARY_DIR} ${hello_SOURCE_DIR}/HelloWorld.java)
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
OUTPUT ${hello_BINARY_DIR}/foo.jar
|
OUTPUT ${hello_BINARY_DIR}/hello.jar
|
||||||
DEPENDS ${hello_BINARY_DIR}/A.class ${hello_BINARY_DIR}/HelloWorld.class
|
DEPENDS ${hello_BINARY_DIR}/A.class ${hello_BINARY_DIR}/HelloWorld.class
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
ARGS -E chdir ${CMAKE_CURRENT_BINARY_DIR}
|
ARGS -E chdir ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_Java_ARCHIVE}
|
${CMAKE_Java_ARCHIVE}
|
||||||
-cvf foo.jar *.class)
|
-cvf foo.jar *.class)
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(foo.jar ALL
|
ADD_CUSTOM_TARGET(hello.jar ALL
|
||||||
DEPENDS ${hello_BINARY_DIR}/foo.jar)
|
DEPENDS ${hello_BINARY_DIR}/hello.jar)
|
||||||
ENDIF(OLD_CUSTOM_COMMAND_WAY)
|
ENDIF(OLD_CUSTOM_COMMAND_WAY)
|
||||||
|
|
Loading…
Reference in New Issue