Using VERSION_LESS instead of VERSION_GREATER_EQUAL

Since apparently VERSION_GREATER_EQUAL exists only from CMake 3.7, while
Android is using CMake 3.6.
This commit is contained in:
Richard Musil 2019-09-19 16:03:25 +02:00
parent dfcd43bc49
commit f6afb5e0f3

View File

@ -7,7 +7,7 @@ else()
cmake_policy(VERSION 3.11)
endif()
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.15)
if (NOT ${CMAKE_VERSION} VERSION_LESS 3.15)
# Set policy to accept MSVC runtime selector (requires CMake >= 3.15)
cmake_policy (SET CMP0091 NEW)
option(MSVC_BUILD_STATIC "Enable building with static CRT." OFF)