From 11ccf33128e89b1e1ba0e4f4e724d25bf644cc0f Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Wed, 11 Feb 2015 13:21:28 +0100 Subject: [PATCH] Abort if the propper cmake isn't there. --- GNUmakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 2ca7f70162..3025df5262 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -250,7 +250,7 @@ pack-winXX-MOREOPTS: ${MAKE} pack-winXX-cmake BITS="$(BITS)" TARGET="$(TARGET)" VERSION="`awk '{print substr($$3,2,length($$3)-2);}' build.h`" MOREOPTS=$(MOREOPTS) ${MAKE} pack-winXX-build BITS="$(BITS)" TARGET="$(TARGET)" BUILD_TARGET=Debug -pack-winXX-cmake: +pack-winXX-cmake: checkcmake cd Build$(BITS) && cmake \ -G "$(TARGET)" \ -D "ARANGODB_VERSION=${VERSION}" \ @@ -271,6 +271,13 @@ pack-winXX-build: ./Installation/Windows/installer-generator.sh $(BITS) $(shell pwd) +checkcmake: + if test -z "`cmake --help |grep -i visual`"; then \ + echo "Your cmake is not sufficient; it lacks support for visual studio." ; \ + exit 1; \ + fi + + ################################################################################ ### @brief generates a tar archive ################################################################################