pass the library path to Java tests

This commit is contained in:
Markus Pilman 2020-09-25 09:38:33 -06:00
parent 33d6c412c1
commit c7324761c1
1 changed files with 4 additions and 1 deletions

View File

@ -415,5 +415,8 @@ function(add_java_test)
endforeach()
add_fdbclient_test(
NAME ${T_NAME}
COMMAND ${Java_JAVA_EXECUTABLE} -cp "${cp}" ${T_CLASS} "@CLUSTER_FILE@")
COMMAND ${Java_JAVA_EXECUTABLE}
-cp "${cp}"
-Djava.library.path=${CMAKE_BINARY_DIR}/lib
${T_CLASS} "@CLUSTER_FILE@")
endfunction()