Browse Source

BUG: For in-source version do not use a custom command output and custom target with the same name. This accidentally worked before but with a circular dependency.

Brad King 18 years ago
parent
commit
04525424af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/Java/CMakeLists.txt

+ 1 - 1
Tests/Java/CMakeLists.txt

@@ -34,7 +34,7 @@ ELSE(NOT OLD_CUSTOM_COMMAND_WAY)
     ${CMAKE_Java_ARCHIVE}
     -cvf hello.jar *.class)
   
-  ADD_CUSTOM_TARGET(hello.jar ALL 
+  ADD_CUSTOM_TARGET(hello_jar ALL 
     DEPENDS ${hello_BINARY_DIR}/hello.jar)
 
 ENDIF(NOT OLD_CUSTOM_COMMAND_WAY)