You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/11/29 00:20:45 UTC
[16/23] mesos git commit: CMake: Add a target between MESOS_TARGET
and MESOS_PROTOBUFs.
CMake: Add a target between MESOS_TARGET and MESOS_PROTOBUFs.
We need this extra level of targets in order to model the
dependency chain for binaries and libraries. An example
is the mesos-containerizer binary, which depends on libmesos
(i.e. MESOS_TARGET) but does not get included in the dependency
chain if you only depend on MESOS_TARGET.
Review: https://reviews.apache.org/r/53761/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e241da0f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e241da0f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e241da0f
Branch: refs/heads/master
Commit: e241da0f0943a6af2ac058e3886cf6d85b0e196b
Parents: a7347ac
Author: Joseph Wu <jo...@mesosphere.io>
Authored: Mon Nov 28 15:32:40 2016 -0800
Committer: Joseph Wu <jo...@apache.org>
Committed: Mon Nov 28 15:40:06 2016 -0800
----------------------------------------------------------------------
cmake/MesosConfigure.cmake | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/e241da0f/cmake/MesosConfigure.cmake
----------------------------------------------------------------------
diff --git a/cmake/MesosConfigure.cmake b/cmake/MesosConfigure.cmake
index 53141fc..f44fc0e 100755
--- a/cmake/MesosConfigure.cmake
+++ b/cmake/MesosConfigure.cmake
@@ -138,7 +138,16 @@ set(
# MESOS LIBRARY CONFIGURATION.
##############################
-set(MESOS_TARGET mesos-${MESOS_PACKAGE_VERSION})
+set(
+ MESOS_TARGET mesos-and-binaries
+ CACHE STRING "Target that includes libmesos and all required binaries")
+
+add_custom_target(${MESOS_TARGET} ALL)
+
+set(MESOS_LIBS_TARGET mesos-${MESOS_PACKAGE_VERSION}
+ CACHE STRING "Library of master and agent code"
+ )
+
set(MESOS_PROTOBUF_TARGET mesos-protobufs
CACHE STRING "Library of protobuf definitions used by Mesos"
)