diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-07-30 22:18:05 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-07-30 22:18:05 +0300 |
commit | 44928a2a8f2ebb3a9489e21aa3169b20f6945590 (patch) | |
tree | 97c71701cb49b03d52e96691ae58790610e1a5b1 /build_files | |
parent | 848cbe889b6330822d8bbf56a0bc7e755e153fd1 (diff) |
Fix: Blender_test not working on windows.
This bumps the minimum requirement for cmake from 3.10 to 3.18 on windows
if `WITH_GTESTS` is enabled.
Reviewed By: sergey brecht sybren campbellbarton
Differential Revision: https://developer.blender.org/D8405
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/platform/platform_win32.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_win32.cmake b/build_files/cmake/platform/platform_win32.cmake index 01d48364435..ebafe92c962 100644 --- a/build_files/cmake/platform/platform_win32.cmake +++ b/build_files/cmake/platform/platform_win32.cmake @@ -26,6 +26,10 @@ if(NOT MSVC) message(FATAL_ERROR "Compiler is unsupported") endif() +if(WITH_GTESTS AND ${CMAKE_VERSION} VERSION_LESS "3.18.0") + message(FATAL_ERROR "CMake 3.18.0 is required for building WITH_GTESTS on windows, currently installed cmake version is ${CMAKE_VERSION}") +endif() + if(CMAKE_C_COMPILER_ID MATCHES "Clang") set(MSVC_CLANG On) set(VC_TOOLS_DIR $ENV{VCToolsRedistDir} CACHE STRING "Location of the msvc redistributables") |