deps-mingw.cmake 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. set(DEP_CMAKE_OPTS "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
  2. set(DEP_BOOST_TOOLSET "gcc")
  3. set(DEP_BITS 64)
  4. find_package(Git REQUIRED)
  5. # TODO make sure to build tbb with -flifetime-dse=1
  6. include("deps-unix-common.cmake")
  7. ExternalProject_Add(dep_boost
  8. EXCLUDE_FROM_ALL 1
  9. URL "https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz"
  10. URL_HASH SHA256=882b48708d211a5f48e60b0124cf5863c1534cd544ecd0664bb534a4b5d506e9
  11. BUILD_IN_SOURCE 1
  12. CONFIGURE_COMMAND bootstrap.bat
  13. BUILD_COMMAND b2.exe
  14. -j "${NPROC}"
  15. --with-system
  16. --with-filesystem
  17. --with-thread
  18. --with-log
  19. --with-locale
  20. --with-regex
  21. "--prefix=${DESTDIR}/usr/local"
  22. "address-model=${DEPS_BITS}"
  23. "toolset=${DEP_BOOST_TOOLSET}"
  24. link=static
  25. define=BOOST_USE_WINAPI_VERSION=0x0502
  26. variant=release
  27. threading=multi
  28. boost.locale.icu=off
  29. "${DEP_BOOST_DEBUG}" release install
  30. INSTALL_COMMAND "" # b2 does that already
  31. )
  32. ExternalProject_Add(dep_libcurl
  33. EXCLUDE_FROM_ALL 1
  34. URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
  35. URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
  36. CMAKE_ARGS
  37. -DBUILD_SHARED_LIBS=OFF
  38. -DBUILD_TESTING=OFF
  39. -DCURL_STATICLIB=ON
  40. -DCURL_STATIC_CRT=ON
  41. -DENABLE_THREADED_RESOLVER=ON
  42. -DCURL_DISABLE_FTP=ON
  43. -DCURL_DISABLE_LDAP=ON
  44. -DCURL_DISABLE_LDAPS=ON
  45. -DCURL_DISABLE_TELNET=ON
  46. -DCURL_DISABLE_DICT=ON
  47. -DCURL_DISABLE_FILE=ON
  48. -DCURL_DISABLE_TFTP=ON
  49. -DCURL_DISABLE_RTSP=ON
  50. -DCURL_DISABLE_POP3=ON
  51. -DCURL_DISABLE_IMAP=ON
  52. -DCURL_DISABLE_SMTP=ON
  53. -DCURL_DISABLE_GOPHER=ON
  54. -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  55. ${DEP_CMAKE_OPTS}
  56. )