Skip to content

Commit 3b4a6d8

Browse files
committed
pass macosx-version-min for boost
fixes: ld: warning: object file (.../lib/libboost_iostreams.a[6](zlib.o)) was built for newer 'macOS' version (14.0) than being linked (13.3) ld: warning: object file (.../lib/libboost_thread.a[2](thread.o)) was built for newer 'macOS' version (14.0) than being linked (13.3) ld: warning: object file (.../lib/libboost_thread.a[3](once.o)) was built for newer 'macOS' version (14.0) than being linked (13.3) see: conan-io/conan-center-index#12328 conan-io/conan-center-index#20492 conan-io/conan-center-index#10281
1 parent 4dcc381 commit 3b4a6d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

conanfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def configure(self):
6363
self.options['mimalloc'].override = True
6464

6565
self.options['boost'].asio_no_deprecated = True
66+
if self.settings.os == 'Macos':
67+
CMAKE_OSX_DEPLOYMENT_TARGET = '10.13'
68+
os_version_min_flag = f'-mmacosx-version-min={CMAKE_OSX_DEPLOYMENT_TARGET}'
69+
self.options['boost'].extra_b2_flags = f'cxxflags="{os_version_min_flag}" linkflags="{os_version_min_flag}"'
6670

6771
# Disable building unused boost components
6872
# note: changing default options above forces a boost rebuild anyway

0 commit comments

Comments
 (0)