Skip to content

Commit 862848a

Browse files
committed
Build - teach win cmake config script about vcpkg
1 parent 9683336 commit 862848a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/win-config.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set WORKING_DIR=%CD%
22
set CONFIG=%1
3+
set SCRIPT_DIR=%~dp0
34
cd %~dp0
45
if /I "%CONFIG%" == "" (set CONFIG=Release)
56

@@ -16,7 +17,10 @@ cd build
1617
@REM explicitly, but as we also pass it in here it will be used by the cmake
1718
@REM build files for app/external
1819

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 ..\
2024
if %ERRORLEVEL% neq 0 (
2125
cd %WORKING_DIR%
2226
exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)