@@ -85,6 +85,14 @@ FOR %%i IN (powershell git cmake) DO (
8585 where.exe %%i 1 > NUL 2 > NUL || call cecho.cmd 0 12 " Required tool `'%%i `' not installed or not added to PATH" && goto :ErrorAndPrintUsage
8686)
8787
88+ cmake --version | findstr version > temp.txt
89+ set /p CMAKE_VERSION = < temp.txt
90+ del temp.txt
91+ if " %CMAKE_VERSION% " LSS " cmake version 3.11.4" (
92+ echo " CMake v3.11.4 or higher is required"
93+ goto :ErrorAndPrintUsage
94+ )
95+
8896:: Print build configuration information
8997
9098call cecho.cmd 0 10 " Script configuration:"
@@ -141,41 +149,38 @@ cd "%DEPS_DIR%"
141149:: by modifying this file and using goto.
142150:Boost
143151:: NOTE Boost < 1.64 doesn't work without tricks if the user has only VS 2017 installed and no earlier versions.
144- set BOOST_VERSION = 1.65.1
145- :: DEPENDENCY_NAME is used for logging and DEPENDENCY_DIR for saving from some redundant typing
146- set DEPENDENCY_NAME = Boost %BOOST_VERSION%
147- set DEPENDENCY_DIR = " %DEPS_DIR% \boost"
152+ set BOOST_VERSION = 1.67.0
148153:: Version string with underscores instead of dots.
149154set BOOST_VER = %BOOST_VERSION:. =_ %
150- REM set BOOST_ROOT=%DEPS_DIR%\boost
151- REM set BOOST_INCLUDEDIR=%DEPS_DIR%\boost
152- set BOOST_LIBRARYDIR = %DEPS_DIR% \boost\stage\%VS_PLATFORM% \lib
155+ :: DEPENDENCY_NAME is used for logging and DEPENDENCY_DIR for saving from some redundant typing
156+ set DEPENDENCY_NAME = Boost %BOOST_VERSION%
157+ set DEPENDENCY_DIR = " %DEPS_DIR% \boost_%BOOST_VER% "
158+ set BOOST_LIBRARYDIR = %DEPENDENCY_DIR% \stage\%VS_PLATFORM% \lib
153159:: NOTE Also zip download exists, if encountering problems with 7z for some reason.
154160set ZIP_EXT = 7z
155161set BOOST_ZIP = boost_%BOOST_VER% .%ZIP_EXT%
156162
157163call :DownloadFile https://dl.bintray.com/boostorg/release/%BOOST_VERSION% /source/%BOOST_ZIP% " %DEPS_DIR% " %BOOST_ZIP%
158164
159165IF NOT %ERRORLEVEL% == 0 GOTO :Error
160- call :ExtractArchive %BOOST_ZIP% " %DEPS_DIR% " " %DEPS_DIR% \boost "
166+ call :ExtractArchive %BOOST_ZIP% " %DEPS_DIR% " " %DEPENDENCY_DIR% "
161167IF NOT %ERRORLEVEL% == 0 GOTO :Error
162168
163169:: Build Boost build script
164- if not exist " %DEPS_DIR% \boost \project-config.jam" . (
170+ if not exist " %DEPENDENCY_DIR% \project-config.jam" . (
165171 cd " %DEPS_DIR% "
166- ren boost_%BOOST_VER% boost
167- IF NOT EXIST " %DEPS_DIR% \boost\boost.css" GOTO :Error
168- cd " %DEPS_DIR% \boost"
172+ IF NOT EXIST " %DEPENDENCY_DIR% \boost.css" GOTO :Error
173+ cd " %DEPENDENCY_DIR% "
169174 call cecho.cmd 0 13 " Building Boost build script."
170175 call bootstrap msvc
171176 IF NOT %ERRORLEVEL% == 0 GOTO :Error
172177)
173178
174179set BOOST_LIBS = --with-system --with-regex --with-thread --with-program_options --with-date_time --with-iostreams --with-filesystem
175180:: NOTE Boost is fast to build with limited set of libraries so build it always.
176- cd " %DEPS_DIR% \boost "
181+ cd " %DEPENDENCY_DIR% "
177182call cecho.cmd 0 13 " Building %DEPENDENCY_NAME% %BOOST_LIBS% Please be patient, this will take a while."
178- IF EXIST " %DEPS_DIR% \boost \bin.v2\project-cache.jam" del " %DEPS_DIR% \boost\bin.v2\project-cache.jam"
183+ IF EXIST " %DEPENDENCY_DIR% \bin.v2\project-cache.jam" del " %DEPS_DIR% \boost\bin.v2\project-cache.jam"
179184:: BOOST_VC_VER can be empty (or needs to be) for newer VS versions
180185set BOOST_VC_VER =
181186if %VS_VER% LSS 2017 (
@@ -186,6 +191,8 @@ call .\b2 toolset=msvc%BOOST_VC_VER% runtime-link=static address-model=%ARCH_BIT
186191 variant=%DEBUG_OR_RELEASE_LOWERCASE% %BOOST_LIBS% stage --stagedir=stage/vs%VS_VER% -%VS_PLATFORM%
187192IF NOT %ERRORLEVEL% == 0 GOTO :Error
188193
194+ goto :Successful
195+
189196:ICU
190197set DEPENDENCY_NAME = ICU
191198set DEPENDENCY_DIR = N/A
0 commit comments