diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-12-11 14:17:24 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-12-11 14:17:24 (GMT) |
commit | 5aa88f0e026c004524b88fd8d2be13ab85f17e71 (patch) | |
tree | f6d4a172153ec3d2ef5d52f93cf08128c7be1f0a | |
parent | cb995ddea2d633310b270e99d020fe490fff5ec7 (diff) | |
download | CMake-5aa88f0e026c004524b88fd8d2be13ab85f17e71.zip CMake-5aa88f0e026c004524b88fd8d2be13ab85f17e71.tar.gz CMake-5aa88f0e026c004524b88fd8d2be13ab85f17e71.tar.bz2 |
UseJava: add_jar: rebuild jar on dependencies changes
Fixes: #18683
-rw-r--r-- | Modules/UseJava.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake index 68c9a27..2bcd28e 100644 --- a/Modules/UseJava.cmake +++ b/Modules/UseJava.cmake @@ -644,7 +644,7 @@ function(add_jar _TARGET_NAME) string(APPEND CMAKE_JAVA_INCLUDE_PATH_FINAL "${CMAKE_JAVA_INCLUDE_FLAG_SEP}${_JAVA_JAR_PATH}") list(APPEND CMAKE_JAVA_INCLUDE_PATH ${_JAVA_JAR_PATH}) list(APPEND _JAVA_DEPENDS ${_JAVA_INCLUDE_JAR}) - list(APPEND _JAVA_COMPILE_DEPENDS ${_JAVA_INCLUDE_JAR}) + list(APPEND _JAVA_COMPILE_DEPENDS ${_JAVA_JAR_PATH}) else () message(SEND_ERROR "add_jar: INCLUDE_JARS target ${_JAVA_INCLUDE_JAR} is not a jar") endif () |