Add CMake option to provide custom libstdc++ on macOS (#1344)

develop
lethosor 2019-07-20 11:21:44 -04:00
parent 49f3de979f
commit ea0105fa66
1 changed files with 5 additions and 3 deletions

@ -296,6 +296,7 @@ if(WIN32)
endif()
endif()
option(EXTERNAL_LIBSTDCXX "macOS only: Avoid installing the DFHack-provided libstdc++." OFF)
if(APPLE)
# libstdc++ (GCC 4.8.5 for OS X 10.6)
# fixes crash-on-unwind bug in DF's libstdc++
@ -346,9 +347,10 @@ if(APPLE)
endif()
endif()
install(PROGRAMS ${LIBSTDCXX_DOWNLOAD_DIR}/libstdc++.6.dylib
DESTINATION ./hack/)
if(NOT EXTERNAL_LIBSTDCXX)
install(PROGRAMS ${LIBSTDCXX_DOWNLOAD_DIR}/libstdc++.6.dylib
DESTINATION ./hack/)
endif()
endif()
#### expose depends ####