From fe2f67bc7adfd122ece8d9be992657b6cdb0ff89 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 15 Oct 2024 07:12:02 +0400 Subject: [PATCH] Assert on minimal macOS deployment target (#26136) ### Details: - See https://github.com/openvinotoolkit/openvino.genai/actions/runs/10470176019/job/28994760817 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c68e3a611b39ba..e9e8d3724d9ac5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,11 @@ if(ENABLE_COVERAGE) include(cmake/coverage.cmake) endif() +if(APPLE AND 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})