mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-06 08:02:18 +00:00
758053788b
This version is equivalent to commit ba26ebece8f5be84e9bd6315611d412af797147e in the old git repository. llvm-svn: 130476
20 lines
429 B
CMake
20 lines
429 B
CMake
FIND_PATH(GMP_INCLUDE_DIR gmp.h)
|
|
|
|
FIND_LIBRARY(GMP_LIBRARY NAMES gmp)
|
|
|
|
IF (GMP_INCLUDE_DIR AND GMP_LIBRARY)
|
|
SET(GMP_FOUND TRUE)
|
|
ENDIF (GMP_INCLUDE_DIR AND GMP_LIBRARY)
|
|
|
|
|
|
IF (GMP_FOUND)
|
|
IF (NOT GMP_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found GMP: ${GMP_LIBRARY}")
|
|
ENDIF (NOT GMP_FIND_QUIETLY)
|
|
ELSE (GMP_FOUND)
|
|
IF (GMP_FIND_REQUIRED)
|
|
MESSAGE(FATAL_ERROR "Could not find GMP")
|
|
ENDIF (GMP_FIND_REQUIRED)
|
|
ENDIF (GMP_FOUND)
|
|
|