Skip to content

Commit

Permalink
Search for GMP harder.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Mar 31, 2024
1 parent 08ddd87 commit 7d6138c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cmake/gmp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,18 @@ if (GMP_INCLUDE_DIR AND GMP_LIBRARIES)
unset(GMP_LIBRARIES CACHE)
endif (GMP_INCLUDE_DIR AND GMP_LIBRARIES)

find_path(GMP_INCLUDE_DIR NAMES gmp.h)
find_path(GMP_INCLUDE_DIR gmp.h
PATHS
ENV GMP_ROOT
ENV GMP_INCLUDE_DIR
${GMP_ROOT}
/usr
/usr/local
$ENV{HOME}/.local
PATH_SUFFIXES
include
)

if(STBIN)
find_library(GMP_LIBRARIES NAMES libgmp.a gmp.lib libgmp-10 libgmp gmp)
else(STBIN)
Expand Down

0 comments on commit 7d6138c

Please sign in to comment.