Skip to content

Commit b2617af

Browse files
committed
cmake: require min macos SDK 10.14 (nanobind)
fixes the error on macos-15-intel: error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcep │ │ t' is only available on macOS 10.13 or newer
1 parent 2bc4801 commit b2617af

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ include(cmake/get-jrl-cmakemodules.cmake)
1313

1414
jrl_configure_defaults()
1515

16+
# Requires macOS >=10.14 SDK (fixes build issues on macos-15-intel)
17+
# ref: https://github.com/wjakob/nanobind_example/blob/master/pyproject.toml#L43
18+
set(
19+
CMAKE_OSX_DEPLOYMENT_TARGET
20+
"10.14"
21+
CACHE STRING
22+
"Minimum macOS version supported by proxsuite"
23+
FORCE
24+
)
25+
1626
set(PROXSUITE_CXX_STANDARD 17 CACHE STRING "C++ standard to be used by proxsuite")
1727
if(PROXSUITE_CXX_STANDARD LESS 17)
1828
message(

0 commit comments

Comments
 (0)