File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
set WORKING_DIR = %CD%
2
2
set CONFIG = %1
3
+ set SCRIPT_DIR = %~dp0
3
4
cd %~dp0
4
5
if /I " %CONFIG% " == " " (set CONFIG=Release)
5
6
@@ -16,7 +17,10 @@ cd build
16
17
@ REM explicitly, but as we also pass it in here it will be used by the cmake
17
18
@ REM build files for app/external
18
19
19
- cmake -G " Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%CONFIG% -DKISSFFT_TOOLS=OFF -DKISSFFT_PKGCONFIG=OFF ..\
20
+ set " VCPKG_ROOT = %SCRIPT_DIR% vcpkg"
21
+ set " VCPKG_TOOLCHAIN = %VCPKG_ROOT% \scripts\buildsystems\vcpkg.cmake"
22
+
23
+ cmake -G " Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%CONFIG% -DCMAKE_TOOLCHAIN_FILE=%VCPKG_TOOLCHAIN% -DVCPKG_TARGET_TRIPLET=%VCPKG_TRIPLET% -DKISSFFT_TOOLS=OFF -DKISSFFT_PKGCONFIG=OFF ..\
20
24
if %ERRORLEVEL% neq 0 (
21
25
cd %WORKING_DIR%
22
26
exit /b %ERRORLEVEL%
You can’t perform that action at this time.
0 commit comments