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 2017/09/03 12:51:39 UTC

[17/42] mesos git commit: CMake: Added variables for library linkage and suffixes.

CMake: Added variables for library linkage and suffixes.

These variables will be used to name imported libraries, which will
(with some exceptions) depend on the global linkage (shared/static)
of Mesos.

Review: https://reviews.apache.org/r/61285/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0be34152
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0be34152
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0be34152

Branch: refs/heads/master
Commit: 0be341527956344eec56886ebc28653eaa813ed5
Parents: db716d7
Author: Andrew Schwartzmeyer <an...@schwartzmeyer.com>
Authored: Wed Aug 16 07:23:04 2017 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Sun Sep 3 05:51:06 2017 -0700

----------------------------------------------------------------------
 3rdparty/CMakeLists.txt | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/0be34152/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index a503194..e27d20d 100755
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -16,6 +16,15 @@
 
 include(ExternalProject)
 
+if (BUILD_SHARED_LIBS)
+  set(LIBRARY_LINKAGE SHARED)
+  set(LIBRARY_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
+else ()
+  set(LIBRARY_LINKAGE STATIC)
+  set(LIBRARY_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX})
+endif ()
+
+
 # Define sources of third-party dependencies.
 #############################################
 if (REBUNDLED)