From f6afb5e0f38d0763ecafdd689848e7e0fcf93a03 Mon Sep 17 00:00:00 2001 From: Richard Musil Date: Thu, 19 Sep 2019 16:03:25 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c2eab8f..4972e873 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)