From e4abdd947639f0ef9556bf505e879c7cfdeb5806 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 20 Aug 2024 14:04:11 +0200 Subject: [PATCH] Assert on minimal macOS deployment target --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c68e3a611b39ba..ec1b9cb44a5cb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,11 @@ if(ENABLE_COVERAGE) include(cmake/coverage.cmake) endif() +if(APPLE AND DEFINED CMAKE_OSX_DEPLOYMENT_TARGET AND + CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.15) + message(FATAL_ERROR "OpenVINO requires MACOSX_DEPLOYMENT_TARGET at least 10.15, specified ${CMAKE_OSX_DEPLOYMENT_TARGET}") +endif() + # resolving dependencies for the project message (STATUS "CMAKE_VERSION ......................... " ${CMAKE_VERSION}) message (STATUS "CMAKE_CROSSCOMPILING .................. " ${CMAKE_CROSSCOMPILING})