Skip to content

Commit

Permalink
Python wheels: enforce deployment on macOS 10.15 and later.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jul 19, 2022
1 parent d82593c commit 496ca10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: auto64
CIBW_ENVIRONMENT: >
_PYTHON_HOST_PLATFORM=macosx-10.15-x86_64
MACOSX_DEPLOYMENT_TARGET: 10.15
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions cmake/environmentchecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ elseif(NOT ${ARCHITECTURE} EQUAL 64)
message(FATAL_ERROR "${CMAKE_PROJECT_NAME} can only be built in 64-bit mode.")
endif()

# Make sure that we are building libOpenCOR for macOS 10.15 and later.

if(APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER_EQUAL 10.15)
message(FATAL_ERROR "${CMAKE_PROJECT_NAME} can only be built for macOS 10.15 and later.")
endif()

# Check whether we are dealing with a single or multiple configuration.

get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
Expand Down

0 comments on commit 496ca10

Please sign in to comment.