From 40b175adf47470530cf7daf8633dd30ed7f422cf Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 7 Aug 2022 00:31:00 -0600 Subject: [PATCH] Remove check for old macOS versions There is no need to check for macOS 10.6 or lower. Snow Leopard came out in 2009. Because it's nearly 13 years old, it's safe to say nobody will be trying to build SFML 3 on Snow Leopard. This was added in de70f691e way back in 2011 when Snow Leopard was a mere cub. --- cmake/Config.cmake | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmake/Config.cmake b/cmake/Config.cmake index af724f779..4e82a09c4 100644 --- a/cmake/Config.cmake +++ b/cmake/Config.cmake @@ -50,14 +50,6 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") # don't use the OpenGL ES implementation on Mac OS X set(OPENGL_ES 0) - - # detect OS X version. (use '/usr/bin/sw_vers -productVersion' to extract V from '10.V.x'.) - exec_program(/usr/bin/sw_vers ARGS -productVersion OUTPUT_VARIABLE MACOSX_VERSION_RAW) - string(REGEX REPLACE "10\\.([0-9]+).*" "\\1" MACOSX_VERSION "${MACOSX_VERSION_RAW}") - if(${MACOSX_VERSION} LESS 7) - message(FATAL_ERROR "Unsupported version of OS X: ${MACOSX_VERSION_RAW}") - return() - endif() endif() elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Android") set(SFML_OS_ANDROID 1)