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 2019/09/18 23:15:24 UTC
[mesos] 03/03: Windows: Disabled the dist and distcheck targets
with a note.
This is an automated email from the ASF dual-hosted git repository.
josephwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 4da3fcdc4ea6b4079d760a265ec67d8478defd80
Author: Joseph Wu <jo...@apache.org>
AuthorDate: Wed Sep 18 12:24:39 2019 -0700
Windows: Disabled the dist and distcheck targets with a note.
The targets are implemented with shell scripts, so do not work
on Windows. The targets are also currently unneeded for the Windows
build.
Review: https://reviews.apache.org/r/71507
---
CMakeLists.txt | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1ca5c2..bac1819 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,9 +96,14 @@ option(CPACK_SOURCE_ZIP "Enable to build ZIP source packages" OFF)
include(CPack)
-add_custom_target(dist
- COMMAND ${CMAKE_SOURCE_DIR}/cmake/dist.sh ${MESOS_PACKAGE_VERSION})
-
-add_custom_target(distcheck
- COMMAND ${CMAKE_SOURCE_DIR}/cmake/distcheck.sh ${MESOS_PACKAGE_VERSION}
- DEPENDS dist)
+if (NOT WIN32)
+ # These targets are intended to mirror the same targets of the Autotools
+ # build. Because these are written as Shell scripts, they cannot be
+ # run on Windows.
+ add_custom_target(dist
+ COMMAND ${CMAKE_SOURCE_DIR}/cmake/dist.sh ${MESOS_PACKAGE_VERSION})
+
+ add_custom_target(distcheck
+ COMMAND ${CMAKE_SOURCE_DIR}/cmake/distcheck.sh ${MESOS_PACKAGE_VERSION}
+ DEPENDS dist)
+endif ()