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
|
||||
COMMAND ${CMAKE_Java_COMPILER} ARGS -classpath . -d ${hello_BINARY_DIR} ${hello_SOURCE_DIR}/HelloWorld.java)
|
||||
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
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E chdir ${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_Java_ARCHIVE}
|
||||
-cvf foo.jar *.class)
|
||||
|
||||
ADD_CUSTOM_TARGET(foo.jar ALL
|
||||
DEPENDS ${hello_BINARY_DIR}/foo.jar)
|
||||
ADD_CUSTOM_TARGET(hello.jar ALL
|
||||
DEPENDS ${hello_BINARY_DIR}/hello.jar)
|
||||
ENDIF(OLD_CUSTOM_COMMAND_WAY)
|
||||
|
|
Loading…
Reference in New Issue