Correct MacOS version detection

First version of MacOS Sierra have Darwin version 16.0.0, not 16.1.0
Wiki info https://ru.wikipedia.org/wiki/Darwin#Хронология_версий
This commit is contained in:
Marsel Arduanov 2018-03-03 20:05:21 +05:00 committed by GitHub
parent 49bab773fd
commit c4138f6486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
if (APPLE)
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT "${CMAKE_SYSTEM_VERSION}" VERSION_LESS "16.1.0")
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT "${CMAKE_SYSTEM_VERSION}" VERSION_LESS "16.0.0")
set (APPLE_SIERRA_OR_NEWER 1)
else ()
set (APPLE_SIERRA_OR_NEWER 0)