Set mmacosx-version-min to 10.9 for OCCT

See https://github.com/openMVG/openMVG/issues/316#issuecomment-332142824
This commit is contained in:
Thomas Krijnen
2017-09-26 11:43:03 +02:00
committed by GitHub
parent 688a652bc1
commit 7ba0b04031
+3 -1
View File
@@ -378,7 +378,9 @@ if TARGET_ARCH == "i686" and __check_output__([uname, "-m"]).strip() == "x86_64"
BOOST_ADDRESS_MODEL=["architecture=x86", "address-model=32"]
if get_os() == "Darwin":
ADDITIONAL_ARGS=["-mmacosx-version-min=10.6"]+ADDITIONAL_ARGS
# C++11 features used in OCCT 7+ need a more recent stdlib
version_min = "10.9" if USE_OCCT else "10.6"
ADDITIONAL_ARGS=["-mmacosx-version-min=" % version_min]+ADDITIONAL_ARGS
# If the linker supports GC sections, set it up to reduce binary file size
# -fPIC is required for the shared libraries to work