forked from stanford-centaur/pono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cmake-gmp' into dynamic-smt-switch
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Find GMP | ||
# GMP_FOUND - system has GMP lib | ||
# GMP_INCLUDE_DIR - the GMP include directory | ||
# GMP_LIBRARIES - Libraries needed to use GMP | ||
|
||
find_path(GMP_INCLUDE_DIR NAMES gmp.h gmpxx.h) | ||
find_library(GMP_LIBRARIES NAMES gmp) | ||
find_library(GMPXX_LIBRARIES NAMES gmpxx) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(GMP DEFAULT_MSG GMP_INCLUDE_DIR GMP_LIBRARIES) | ||
|
||
mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES) | ||
if(GMP_LIBRARIES) | ||
message(STATUS "Found GMP libs: ${GMP_LIBRARIES}") | ||
endif() | ||
if (GMPXX_LIBRARIES) | ||
message(STATUS "Found GMPXX libs: ${GMPXX_LIBRARIES}") | ||
endif() |