mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-16 22:50:39 +03:00
369a8850c4
Our CMake project used to forcefully create and use two different build directories: "build" and "tmp". This commit changes the behavior so that only the build directory CMake is ran in is used. The "configure" script now runs CMake in "build" by default, instead of "tmp".
31 lines
756 B
Batchfile
31 lines
756 B
Batchfile
@echo off
|
|
|
|
echo ---------------------------------------------------------------------
|
|
echo SoftEther VPN for Windows
|
|
echo.
|
|
echo Copyright (c) all contributors on SoftEther VPN project in GitHub.
|
|
echo Copyright (c) Daiyuu Nobori, SoftEther Project at University of Tsukuba, and SoftEther Corporation.
|
|
echo.
|
|
echo Read and understand README, LICENSE and WARNING before use.
|
|
echo ---------------------------------------------------------------------
|
|
echo.
|
|
|
|
echo Welcome to the corner-cutting configure script !
|
|
echo.
|
|
|
|
if not exist "build" (
|
|
mkdir build
|
|
)
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "NMake Makefiles" ..
|
|
|
|
if %errorlevel% == 0 (
|
|
echo.
|
|
echo The Makefile is generated. Run 'nmake' to build SoftEther VPN.
|
|
) else (
|
|
cd ..
|
|
exit /b 1
|
|
)
|