Skip to content

Commit f52027f

Browse files
pbosettiCopilot
andcommitted
Set minimum macOS deployment target to suppress linker warnings for prebuilt rerun_c library
Co-authored-by: Copilot <copilot@github.com>
1 parent db26e01 commit f52027f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
# Creation date: 2026-03-05T19:28:13.964+0100
1212
# NOTICE: MADS Version 2.0.0
1313
cmake_minimum_required(VERSION 3.28)
14+
# Match the prebuilt rerun_c library's deployment target to suppress
15+
# "was built for newer macOS version" linker warnings.
16+
if(APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET)
17+
set(CMAKE_OSX_DEPLOYMENT_TARGET "26.2" CACHE STRING "Minimum macOS deployment target")
18+
endif()
1419
project(machinetool VERSION 2.0.0 LANGUAGES CXX)
1520
if(CMAKE_BUILD_TYPE STREQUAL "")
1621
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)

0 commit comments

Comments
 (0)