Windows: Specified byproducts of `sasl2` imported target.

This is necessary to enable the Ninja build. This was not previously
fixed because we have not yet used Ninja on Windows. The same pattern
is used for other imported targets.

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


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

Branch: refs/heads/master
Commit: 2a43dbb3c42b5a780979b660d2b24226a7890e47
Parents: 82be064
Author: Andrew Schwartzmeyer <and...@schwartzmeyer.com>
Authored: Fri Feb 16 15:36:32 2018 -0800
Committer: Andrew Schwartzmeyer <and...@schwartzmeyer.com>
Committed: Wed Mar 7 13:38:04 2018 -0800

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/2a43dbb3/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index da60570..2e1015b 100644
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -228,10 +228,12 @@ if (WIN32)
   PATCH_CMD(SASL2_PATCH_CMD cyrus-sasl-${SASL2_VERSION}.patch)
 
   MAKE_INCLUDE_DIR(sasl2)
+  GET_BYPRODUCTS(sasl2)
 
   ExternalProject_Add(
     ${SASL2_TARGET}
     PREFIX            ${SASL2_CMAKE_ROOT}
+    BUILD_BYPRODUCTS  ${SASL2_BYPRODUCTS}
     PATCH_COMMAND     ${SASL2_PATCH_CMD}
     INSTALL_COMMAND   ${CMAKE_NOOP}
     URL               ${SASL2_URL}

Reply via email to