mirror of https://github.com/CGAL/cgal
add new possible gmp name for MSVC
gmp-10 was compiled with vcpkg and installed on Christo
This commit is contained in:
parent
8ec3949272
commit
8fe0633fb5
|
|
@ -8,6 +8,7 @@ int main() {
|
|||
#define GMP_SONAME "libgmp-10"
|
||||
#define MPFR_SONAME "libmpfr-4"
|
||||
#define GMP_SONAME_BACKUP "gmp"
|
||||
#define GMP_SONAME_BACKUP_2 "gmp-10"
|
||||
#define MPFR_SONAME_BACKUP "mpfr-6"
|
||||
#define GMP_MAJOR 5
|
||||
#define MPFR_MAJOR 3
|
||||
|
|
@ -66,9 +67,11 @@ int main() {
|
|||
int major, minor, patch, build;
|
||||
if(!get_version_info(GMP_SONAME, major, minor, patch, build)) {
|
||||
if(!get_version_info(GMP_SONAME_BACKUP, major, minor, patch, build)) {
|
||||
if (!get_version_info(GMP_SONAME_BACKUP_2, major, minor, patch, build)) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << "GMP version "
|
||||
<< major << "."
|
||||
|
|
|
|||
Loading…
Reference in New Issue