gmp_mpfr.cmake 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. if(WIN32)
  2. message(STATUS "Third-party: downloading gmp + mpfr")
  3. include(FetchContent)
  4. # CGAL 5+ ships with a single .zip combining GMP + MPFR's precompiled dlls.
  5. # For now we still download them separately.
  6. FetchContent_Declare(
  7. gmp
  8. URL https://cgal.geometryfactory.com/CGAL/precompiled_libs/auxiliary/x64/GMP/5.0.1/gmp-all-CGAL-3.9.zip
  9. URL_MD5 508c1292319c832609329116a8234c9f
  10. )
  11. FetchContent_MakeAvailable(gmp)
  12. FetchContent_Declare(
  13. mpfr
  14. URL https://cgal.geometryfactory.com/CGAL/precompiled_libs/auxiliary/x64/MPFR/3.0.0/mpfr-all-CGAL-3.9.zip
  15. URL_MD5 48840454eef0ff18730050c05028734b
  16. )
  17. FetchContent_MakeAvailable(mpfr)
  18. # FetchContent_Declare(
  19. # gmp_mpfr
  20. # URL https://github.com/CGAL/cgal/releases/download/v5.2.1/CGAL-5.2.1-win64-auxiliary-libraries-gmp-mpfr.zip
  21. # URL_MD5 247f4dca741c6b9a9be76286414070fa
  22. # )
  23. # For CGAL
  24. set(ENV{GMP_DIR} "${gmp_SOURCE_DIR}")
  25. set(ENV{MPFR_DIR} "${mpfr_SOURCE_DIR}")
  26. else()
  27. # On Linux/macOS, gmp+mpfr will be fetched and compiled
  28. endif()