Skip to content

Commit

Permalink
Assert on minimal macOS deployment target
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Aug 20, 2024
1 parent 595ce79 commit e4abdd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit e4abdd9

Please sign in to comment.