Do not use #warning

This commit is contained in:
Andreas Fabri 2021-11-03 22:24:51 +01:00
parent 451e9e9b26
commit 3dd497f2b6
1 changed files with 2 additions and 2 deletions

View File

@ -27,11 +27,11 @@
#if defined(__has_include)
# if CGAL_USE_GMP && ! __has_include(<gmp.h>)
# warning "<gmp.h> cannot be found. Less efficient number types will be used instead. Define CGAL_NO_GMP=1 if that is on purpose."
# pragma CGAL_WARNING(<gmp.h> cannot be found. Less efficient number types will be used instead. Define CGAL_NO_GMP=1 if that is on purpose.)
# undef CGAL_USE_GMP
# undef CGAL_USE_MPFR
# elif CGAL_USE_MPFR && ! __has_include(<mpfr.h>)
# warning "<mpfr.h> cannot be found and the GMP support in CGAL requires it. Less efficient number types will be used instead. Define CGAL_NO_GMP=1 if that is on purpose."
# pragma CGAL_WARNING(<mpfr.h> cannot be found and the GMP support in CGAL requires it. Less efficient number types will be used instead. Define CGAL_NO_GMP=1 if that is on purpose.)
# undef CGAL_USE_GMP
# undef CGAL_USE_MPFR
# endif // CGAL_USE_MPFR and no <mpfr.h>