From 4e9de955abbfa5a6ed522fd292002379afd8ca82 Mon Sep 17 00:00:00 2001 From: Kylart Date: Sat, 2 Nov 2019 03:46:40 +0100 Subject: [PATCH] Tried adding boost library dir to cmake command --- appveyor.yml | 3 ++- package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index e197f2d..07848e2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,7 +52,8 @@ install: - cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent - mkdir build && cd build - - cmake -DBOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 15 2017" -A x64 .. + - set BOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib + - cmake -DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 15 2017" -A x64 .. - cmake --build . --config Release -- -verbosity:minimal - cmake --install . - set "PATH=c:/Program Files (x86)/libtorrent/;%PATH%" diff --git a/package.json b/package.json index 65347e2..53d4364 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dev": "cross-env NODE_ENV=development vue-cli-service electron:serve", "start": "cross-env NODE_ENV=production electron dist/bundled/background.js", "build": "vue-cli-service electron:build", - "build:bindings": "cmake-js --CDCMAKE_CXX_STANDARD=14 -d bindings -O bindings/build", + "build:bindings": "cmake-js --CDCMAKE_CXX_STANDARD=14 --CDBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -d bindings -O bindings/build", "pack": "npm run build -- --dir", "dist": "npm run dist:mac && npm run dist:win && npm run dist:linux", "dist:mac": "npm run build -- --mac", @@ -23,7 +23,7 @@ "publish:linux": "npm run build -- --linux deb AppImage -p always", "publish:win": "npm run build -- --win --x64 --ia32 -p always", "lint": "vue-cli-service lint", - "compile:bindings": "cmake-js compile --CDCMAKE_CXX_STANDARD=14 -d bindings -O bindings/build", + "compile:bindings": "cmake-js compile --CDCMAKE_CXX_STANDARD=14 --CDBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -d bindings -O bindings/build", "install:deps": "bash bindings/scripts/install.sh", "postinstall": "npm run compile:bindings && electron-builder install-app-deps", "postuninstall": "electron-builder install-app-deps",