File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.13)
22
3- # Verify that your CMake version is exactly 3.31.x series or lower on windows
4- if ( (( MSVC ) OR ( WIN32 )) AND (${CMAKE_VERSION} VERSION_GREATER_EQUAL "4.0 " ) )
5- message (FATAL_ERROR "Only cmake versions between 3.13.x and 3.31.x is supported on windows. Detected version: ${CMAKE_VERSION} " )
3+ # Verify that your CMake version is exactly 3.5 series or higher on windows
4+ if ( (MSVC OR WIN32 ) AND (${CMAKE_VERSION} VERSION_LESS "3.5 " ) )
5+ message (FATAL_ERROR "CMake current version ${CMAKE_VERSION} is too old. Minimum required is 3.5. " )
66endif ()
77
88if (WIN32 )
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ if "%1"=="slicer" (
4646echo " building deps.."
4747
4848echo on
49+ REM Set minimum CMake policy to avoid < 3.5 errors
50+ set CMAKE_POLICY_VERSION_MINIMUM = 3.5
4951cmake ../ -G " Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=%build_type%
5052cmake --build . --config %build_type% --target deps -- -m
5153@ echo off
You can’t perform that action at this time.
0 commit comments