This is an automated email from the ASF dual-hosted git repository.

grag pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 630dbf7486bfe315472fbcd8d0087f75cd9f3786
Author: Andriy Kornatskyy <andriy.kornats...@live.com>
AuthorDate: Fri May 8 14:10:39 2020 -0700

    Fixed the java bindings in the cmake build.
    
    This closes #360
---
 src/CMakeLists.txt      | 3 +--
 src/java/CMakeLists.txt | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 96cd867..810acbf 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -627,8 +627,7 @@ target_link_libraries(
   sasl2
   zookeeper
   mesos-protobufs
-  $<$<AND:$<PLATFORM_ID:Linux>,$<BOOL:${ENABLE_NVML}>>:nvml>
-  $<$<BOOL:${HAS_JAVA}>:mesos-java>)
+  $<$<AND:$<PLATFORM_ID:Linux>,$<BOOL:${ENABLE_NVML}>>:nvml>)
 
 if (NOT WIN32)
   target_link_libraries(mesos PUBLIC leveldb)
diff --git a/src/java/CMakeLists.txt b/src/java/CMakeLists.txt
index 29422e9..81eb9b5 100644
--- a/src/java/CMakeLists.txt
+++ b/src/java/CMakeLists.txt
@@ -116,7 +116,8 @@ add_custom_command(
 add_library(mesos-java ${JAVA_SRC} ${JAVA_H})
 
 target_link_libraries(
-  mesos-java
+  mesos-java PUBLIC
+  mesos
   mesos-protobufs
   process
   zookeeper

Reply via email to