From f0b32edaa924dc0eb512adfc490818af22f24f50 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Mon, 26 Sep 2016 20:29:14 -0700 Subject: [PATCH] Use boost include paths/libs on appveyor build --- cmake/appveyor.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmake/appveyor.yml b/cmake/appveyor.yml index d101fca..c63dd7f 100644 --- a/cmake/appveyor.yml +++ b/cmake/appveyor.yml @@ -9,6 +9,7 @@ environment: matrix: - compiler: vs2013 - compiler: vs2015 + BOOST_ROOT: C:\Libraries\boost clone_depth: 1 install: - git clone https://github.com/mfontanini/winpcap-installer.git @@ -22,9 +23,12 @@ install: before_build: - mkdir build - cd build -- if "%compiler%"=="vs2013" (set VS=Visual Studio 12) else (set VS=Visual Studio 14) -- if "%platform%"=="x64" ( set GENERATOR="%VS% Win64" ) else ( set GENERATOR="%VS%" ) -- cmake .. -G %GENERATOR% -DPCAP_ROOT_DIR=c:\WpdPack -DLIBTINS_BUILD_SHARED=0 -DLIBTINS_ENABLE_WPA2=0 +- if "%compiler%"=="vs2013" (set VS_VERSION=12) else (set VS_VERSION=14) +- set VS=Visual Studio %VS_VERSION% +- if "%platform%"=="Win32" (set GENERATOR="%VS%" & set ARCH_BITS=32) +- if "%platform%"=="x64" (set GENERATOR="%VS% Win64" & set ARCH_BITS=64) +- set BOOST_LIBRARYDIR=C:\Libraries\boost\lib%ARCH_BITS%-msvc-%VS_VERSION%.0 +- cmake .. -G %GENERATOR% -DPCAP_ROOT_DIR=c:\WpdPack -DLIBTINS_BUILD_SHARED=0 -DLIBTINS_ENABLE_WPA2=0 -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DBoost_USE_STATIC_LIBS="ON" build: project: C:/projects/libtins/build/libtins.sln verbosity: minimal