Repository: mesos
Updated Branches:
  refs/heads/master b722466cc -> 90458f1e6


CMake: Added dependency check for sasl2.

This explicitly checks for the existence of the sasl2 library on
non-Windows platforms during the configuration step.  Prior to this
patch, we simply assumed the existence of the library and would only
potentially error out later during the build.

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


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

Branch: refs/heads/master
Commit: 90458f1e6b6281f2bd06b625aef283d021976485
Parents: e7b3f3b
Author: John Kordich <johnk...@microsoft.com>
Authored: Mon Oct 2 11:50:07 2017 -0700
Committer: Joseph Wu <josep...@apache.org>
Committed: Mon Oct 2 11:56:40 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/90458f1e/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index b9204c9..4e10631 100755
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -215,6 +215,12 @@ if (WIN32)
     INSTALL_COMMAND   ${CMAKE_NOOP}
     URL               ${SASL2_URL}
     URL_HASH          ${SASL2_HASH})
+else ()
+  find_library(SASL2_LIB sasl2)
+
+  if (NOT SASL2_LIB)
+    message(FATAL_ERROR "Could not find sasl2 dependency.")
+  endif ()
 endif ()
 
 

Reply via email to