Skip to content

Commit

Permalink
MinGW のプラットフォームに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Oct 19, 2018
1 parent e58a37a commit f8374f1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build-by-cmake.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,22 @@ if not exist "%BUILDDIR%" (
)
set ERROR_RESULT=0

if "%platform%" == "MinGW" (
set GENERATER_PARAM=-G"MinGW Makefiles"
) else (
set GENERATER_PARAM=-DCMAKE_GENERATOR_PLATFORM=%platform%
)

@echo ---- creating project -----
cmake -DCMAKE_GENERATOR_PLATFORM=%platform% -B%BUILDDIR% -H%PROJECT_TOP% || set ERROR_RESULT=1
@echo cmake %GENERATER_PARAM% -B%BUILDDIR% -H%PROJECT_TOP%
cmake %GENERATER_PARAM% -B%BUILDDIR% -H%PROJECT_TOP% || set ERROR_RESULT=1
if "%ERROR_RESULT%" == "1" (
@echo ERROR
exit /b 1
)

@echo ---- building project -----
@echo cmake --build %BUILDDIR% --config %configuration%
cmake --build %BUILDDIR% --config %configuration% || set ERROR_RESULT=1
if "%ERROR_RESULT%" == "1" (
@echo ERROR
Expand Down

0 comments on commit f8374f1

Please sign in to comment.