2018-11-30 19:52:45 +00:00
2019-01-10 12:49:06 +00:00
# This ensures dependencies don't use SDK features which are not available in the version specified by Deployment target
# That can happen when one uses a recent SDK but specifies an older Deployment target
set ( DEP_WERRORS_SDK "-Werror=partial-availability -Werror=unguarded-availability -Werror=unguarded-availability-new" )
2018-11-30 19:52:45 +00:00
set ( DEP_CMAKE_OPTS
" - D C M A K E _ P O S I T I O N _ I N D E P E N D E N T _ C O D E = O N "
2019-01-10 12:49:06 +00:00
" - D C M A K E _ O S X _ S Y S R O O T = $ { C M A K E _ O S X _ S Y S R O O T } "
2019-10-14 14:23:03 +00:00
" - D C M A K E _ O S X _ D E P L O Y M E N T _ T A R G E T = $ { D E P _ O S X _ T A R G E T } "
2019-01-10 12:49:06 +00:00
" - D C M A K E _ C X X _ F L A G S = $ { D E P _ W E R R O R S _ S D K } "
" - D C M A K E _ C _ F L A G S = $ { D E P _ W E R R O R S _ S D K } "
2020-07-06 10:45:06 +00:00
" - D C M A K E _ F I N D _ F R A M E W O R K = L A S T "
" - D C M A K E _ F I N D _ A P P B U N D L E = L A S T "
2018-11-30 19:52:45 +00:00
)
include ( "deps-unix-common.cmake" )
2022-05-16 13:26:43 +00:00
find_package ( CURL QUIET )
if ( NOT CURL_FOUND )
message ( WARNING "No CURL dev package found in system, building static library. Mac SDK should include CURL from at least version 10.12. Check your SDK installation." )
endif ( )
2018-11-30 19:52:45 +00:00
2021-03-22 13:35:49 +00:00
# ExternalProject_Add(dep_boost
# EXCLUDE_FROM_ALL 1
# URL "https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.gz"
# URL_HASH SHA256=aeb26f80e80945e82ee93e5939baebdca47b9dee80a07d3144be1e1a6a66dd6a
# BUILD_IN_SOURCE 1
# CONFIGURE_COMMAND ./bootstrap.sh
# --with-toolset=clang
# --with-libraries=system,iostreams,filesystem,thread,log,locale,regex,date_time
# "--prefix=${DESTDIR}/usr/local"
# BUILD_COMMAND ./b2
# -j ${NPROC}
# --reconfigure
# toolset=clang
# link=static
# variant=release
# threading=multi
# boost.locale.icu=off
# --disable-icu
# "cflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
# "cxxflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
# "mflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
# "mmflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
# install
# INSTALL_COMMAND "" # b2 does that already
# )
2018-11-30 19:52:45 +00:00
2021-03-22 12:36:42 +00:00
# ExternalProject_Add(dep_libcurl
# EXCLUDE_FROM_ALL 1
# URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
# URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
# BUILD_IN_SOURCE 1
# CONFIGURE_COMMAND ./configure
# --enable-static
# --disable-shared
# "--with-ssl=${DESTDIR}/usr/local"
# --with-pic
# --enable-ipv6
# --enable-versioned-symbols
# --enable-threaded-resolver
# --with-darwinssl
# --without-ssl # disables OpenSSL
# --disable-ldap
# --disable-ldaps
# --disable-manual
# --disable-rtsp
# --disable-dict
# --disable-telnet
# --disable-pop3
# --disable-imap
# --disable-smb
# --disable-smtp
# --disable-gopher
# --without-gssapi
# --without-libpsl
# --without-libidn2
# --without-gnutls
# --without-polarssl
# --without-mbedtls
# --without-cyassl
# --without-nss
# --without-axtls
# --without-brotli
# --without-libmetalink
# --without-libssh
# --without-libssh2
# --without-librtmp
# --without-nghttp2
# --without-zsh-functions-dir
# BUILD_COMMAND make "-j${NPROC}"
# INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
# )
2018-11-30 19:52:45 +00:00
2021-03-22 12:36:42 +00:00
# add_dependencies(dep_openvdb dep_boost)