Skip to content

Commit

Permalink
Assert on minimal macOS deployment target (#26136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored Oct 15, 2024
1 parent 421eaec commit fe2f67b
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 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 fe2f67b

Please sign in to comment.