Fix Boost build not forwarding osx sdk flags to the compiler

This commit is contained in:
tamasmeszaros 2022-05-17 10:14:44 +02:00
parent f5ec76c230
commit 8c6f67a164

View File

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