cmake_modules/FindGMP.cmake
author nemo
Thu, 04 Apr 2013 11:27:23 -0400
changeset 8854 31133afaa025
parent 2401 2a694ea2a437
permissions -rw-r--r--
remove 70c086d9b03f - I suspect the issue was actually part of more general prob probably fixed in cfc44db21d72 by jaree

FIND_PATH(GMP_INCLUDE_DIR gmp.h)

FIND_LIBRARY(GMP_LIBRARY NAMES GMP 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)