Showing with 9 additions and 1 deletion.
  1. +3 −1 cmake/mingw-release-download-deps.bat
  2. +6 −0 misc/CMakeLists.txt
4 changes: 3 additions & 1 deletion cmake/mingw-release-download-deps.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ if "%1" == "" (

if "%2" == "" (
set make=mingw32-make
set gen="CodeBlocks - MinGW Makefiles"
) else (
set make=%2
set gen=Ninja
)

if "%3" == "" (
Expand All @@ -32,7 +34,7 @@ if "%4" == "" (

echo on

cmake %kstdir% -G"CodeBlocks - MinGW Makefiles" -Dkst_release=1 -Dkst_merge_files=0 -Dkst_3rdparty_download=%download% -Dkst_3rdparty_build=%build% -Dkst_install_prefix=Kst-%ver% -Dkst_version_string=%ver% -Dkst_make_program=%make%
cmake %kstdir% -G%gen% -Dkst_release=1 -Dkst_merge_files=0 -Dkst_3rdparty_download=%download% -Dkst_3rdparty_build=%build% -Dkst_install_prefix=Kst-%ver% -Dkst_version_string=%ver% -Dkst_make_program=%make%

%make%

Expand Down
6 changes: 6 additions & 0 deletions misc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ if(MINGW)
if(EXISTS ${MINGW_BIN_PATH}/libstdc++-6.dll)
list(APPEND runtime ${MINGW_BIN_PATH}/libstdc++-6.dll)
endif()
if(EXISTS ${MINGW_BIN_PATH}/libwinpthread-1.dll)
list(APPEND runtime ${MINGW_BIN_PATH}/libwinpthread-1.dll)
endif()
if(EXISTS ${MINGW_BIN_PATH}/mingwm10.dll)
list(APPEND runtime ${MINGW_BIN_PATH}/mingwm10.dll)
endif()
if(NOT runtime)
message(FATAL_ERROR "No mingw runtime found in ${MINGW_BIN_PATH}")
endif()
Expand Down