Add path configuration for pulling down curl dependency in Windows.

Windows does not have a good default package manager, and so the
overhead for installing dependencies that CMake historically assumes
are simply present (such as curl) is a _huge_ chore.

A simple fix is to simply use CMake to fetch these dependencies. This
commit will introduce the path configuration logic that will make this
possible for the curl dependency. In subsequent commits we will add
the CMake code download the curl dependency in the Stout project.

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


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

Branch: refs/heads/master
Commit: 6a30e01e6a834206d81550fe8d98c2d106ab31f1
Parents: e891160
Author: Alex Clemmer <[email protected]>
Authored: Sat Aug 1 15:12:21 2015 -0700
Committer: Benjamin Hindman <[email protected]>
Committed: Sat Aug 1 15:12:21 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/cmake/ProcessConfigure.cmake | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/6a30e01e/3rdparty/libprocess/cmake/ProcessConfigure.cmake
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/cmake/ProcessConfigure.cmake 
b/3rdparty/libprocess/cmake/ProcessConfigure.cmake
index 47068ef..12506a1 100755
--- a/3rdparty/libprocess/cmake/ProcessConfigure.cmake
+++ b/3rdparty/libprocess/cmake/ProcessConfigure.cmake
@@ -59,6 +59,12 @@ EXTERNAL("libev"       "4.15"    "${PROCESS_3RD_BIN}")
 
 set(GLOG_LIB ${GLOG_ROOT}-lib/lib)
 
+# DIRECTORY STRUCTURE FOR WINDOWS-ONLY THIRD-PARTY LIBS.
+########################################################
+if (WIN32)
+  EXTERNAL("curl" "7.43.0" "${PROCESS_3RD_BIN}")
+endif (WIN32)
+
 # DEFINE PROCESS LIBRARY DEPENDENCIES. Tells the process library build targets
 # download/configure/build all third-party libraries before attempting to 
build.
 
################################################################################

Reply via email to