add new possible gmp name for MSVC

gmp-10 was compiled with vcpkg and installed on Christo
This commit is contained in:
Jane Tournois 2023-04-13 15:44:21 +02:00
parent 8ec3949272
commit 8fe0633fb5
1 changed files with 4 additions and 1 deletions

View File

@ -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 << "."