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 committed by Lukas Matena
parent 9f65c8ecd6
commit 7af51ce0d4

View File

@ -70,7 +70,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};"