Skip to content

Commit 6cd994e

Browse files
committed
pass macosx-version-min for libblst.a
fixes: ld: warning: object file (third_party/blst/blst/libblst.a[2](assembly.o)) was built for newer 'macOS' version (14.0) than being linked (13.3)
1 parent 374101c commit 6cd994e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

third_party/blst/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ elseif(MSVC)
2424
set(BLST_BUILD_SCRIPT build.bat)
2525
set(BLST_LIB blst.lib)
2626
else()
27-
set(BLST_BUILD_SCRIPT ./build.sh)
27+
set(BLST_BUILD_SCRIPT_ARGS "")
28+
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
29+
set(BLST_BUILD_SCRIPT_ARGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
30+
endif()
31+
set(BLST_BUILD_SCRIPT ./build.sh ${BLST_BUILD_SCRIPT_ARGS})
2832
set(BLST_LIB libblst.a)
2933
endif()
3034

0 commit comments

Comments
 (0)