build: moved jna dependency to add_custom_command
@@ -71,9 +71,8 @@ if (ADDTESTING_PHASE)
${CMAKE_SOURCE_DIR}/cmake/ElektraClasspath.cmake
OUTPUT "${LIBELEKTRA4J_PATH}/classpath.txt" "${CMAKE_CURRENT_BINARY_DIR}/testmod_jni.h"
WORKING_DIRECTORY ${LIBELEKTRA4J_PATH}
- DEPENDS "${LIBELEKTRA4J_PATH}/pom.xml")
+ DEPENDS "${LIBELEKTRA4J_PATH}/pom.xml jna")
add_custom_target (jni_header DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/testmod_jni.h")
- add_dependencies (testmod_jni jni_header jna)
else ()
message (WARNING "jna bindings are required for testing, test deactivated")
endif ()
