summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-05-24 20:21:16 -0700
committerGitHub <noreply@github.com>2021-05-25 03:21:16 +0000
commit8e1eac35d265eacfbeb5f16be61e5d4caf45d1af (patch)
tree0cb4f15e26695cddc18a7de327d015e771fe1323 /src
parent8b68ade92a8687c85a595b116da2da9ca03af5ed (diff)
[Unit tests] Fix path of Java bindings (#6616)
Currently, when configuring cvc5 with Java bindings, CMake complains about `get_filename_component(CVC5_JNI_PATH ${CVC5_JAR_PATH} DIRECTORY)` not using the correct number of arguments in the Java unit tests. The issue is that `${CVC5_JAR_PATH}` is empty. The value of `${CVC5_JAR_PATH}` was computed in the Java API bindings but then not shared with the rest of the build system. Because `${CVC5_JAR_PATH}` is not used anywhere else, this commit moves the computation of `${CVC5_JAR_PATH}` to the unit tests. The commit also ensures that the API subdirectories are processed before the test subdirectories.
Diffstat (limited to 'src')
-rw-r--r--src/api/java/CMakeLists.txt2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/api/java/CMakeLists.txt b/src/api/java/CMakeLists.txt
index d56f594ce..53ea46f46 100644
--- a/src/api/java/CMakeLists.txt
+++ b/src/api/java/CMakeLists.txt
@@ -112,5 +112,3 @@ add_jar(cvc5jar
)
add_dependencies(cvc5jar generate-java-kinds cvc5jni cvc5)
-
-get_target_property(CVC5_JAR_PATH cvc5jar JAR_FILE) \ No newline at end of file
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback