Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using VERSION_LESS instead of VERSION_GREATER_EQUAL
Browse files Browse the repository at this point in the history
Since apparently VERSION_GREATER_EQUAL exists only from CMake 3.7, while
Android is using CMake 3.6.
Richard Musil committed Sep 19, 2019
1 parent dfcd43b commit f6afb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f6afb5e

Please sign in to comment.