Fix Boost build not forwarding osx sdk flags to the compiler

(cherry picked from commit 8c6f67a1645c596189d6601c5ed758e70adfd172)
This commit is contained in:
tamasmeszaros 2022-12-15 17:07:22 -07:00 committed by Lane.Wei
parent d5a8db72ff
commit c87fda7f7a

View file

@ -73,7 +73,9 @@ file(TO_NATIVE_PATH ${DESTDIR}/usr/local/ _prefix)
set(_boost_flags "")
if (UNIX)
set(_boost_flags "cflags=-fPIC;cxxflags=-fPIC")
elseif(APPLE)
endif ()
if(APPLE)
set(_boost_flags
"cflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET};"
"cxxflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET};"