From 70f9f7c0033a37d801ab2205ec6a84fc11d3ff20 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Fri, 13 Apr 2018 21:16:29 -0700 Subject: [PATCH] Fix appveyor --- appveyor.yml | 2 +- dust3d.pro | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index aae7b16d..486df9b2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,7 +36,7 @@ test_script: - if "%PLATFORM%" == "x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 - set PATH=%PATH%;%QTDIR%\bin - - qmake "DEFINES+=BOOST_INCLUDEDIR=C:\Libraries\boost_1_66_0" "DEFINES+=CGAL_DIR=%APPVEYOR_BUILD_FOLDER%\CGAL-4.11.1" + - qmake "BOOST_INCLUDEDIR=C:\Libraries\boost_1_66_0" "CGAL_DIR=%APPVEYOR_BUILD_FOLDER%\CGAL-4.11.1" - nmake -f Makefile.Release after_test: diff --git a/dust3d.pro b/dust3d.pro index 77dee078..7ca46465 100644 --- a/dust3d.pro +++ b/dust3d.pro @@ -86,9 +86,13 @@ SOURCES += src/main.cpp HEADERS += src/version.h win32 { - BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR) - CGAL_DIR = $$(CGAL_DIR) - + isEmpty(BOOST_INCLUDEDIR) { + BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR) + } + isEmpty(CGAL_DIR) { + CGAL_DIR = $$(CGAL_DIR) + } + isEmpty(BOOST_INCLUDEDIR) { error("No BOOST_INCLUDEDIR define found in enviroment variables") }