summaryrefslogtreecommitdiff
path: root/cmake/modules/FindGMP.cmake
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2019-09-25 14:29:41 +0200
committerGard Spreemann <gspr@nonempty.org>2019-09-25 14:29:41 +0200
commit599d68cd916f533bdb66dd9e684dd5703233b6bb (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /cmake/modules/FindGMP.cmake
parenta2e642954ae39025e041471d486ecbac25dff440 (diff)
Delete all files in order to incorporate upstream's move to git.
Diffstat (limited to 'cmake/modules/FindGMP.cmake')
-rw-r--r--cmake/modules/FindGMP.cmake56
1 files changed, 0 insertions, 56 deletions
diff --git a/cmake/modules/FindGMP.cmake b/cmake/modules/FindGMP.cmake
deleted file mode 100644
index de57646f..00000000
--- a/cmake/modules/FindGMP.cmake
+++ /dev/null
@@ -1,56 +0,0 @@
-# - Try to find the GMP libraries
-# This module defines:
-# GMP_FOUND - system has GMP lib
-# GMP_INCLUDE_DIR - the GMP include directory
-# GMP_LIBRARIES_DIR - directory where the GMP libraries are located
-# GMP_LIBRARIES - Link these to use GMP
-# GMP_IN_CGAL_AUXILIARY - TRUE if the GMP found is the one distributed with CGAL in the auxiliary folder
-
-# TODO: support MacOSX
-
-include(FindPackageHandleStandardArgs)
-#include(CGAL_GeneratorSpecificSettings)
-
-if(GMP_INCLUDE_DIR)
- set(GMP_in_cache TRUE)
-else()
- set(GMP_in_cache FALSE)
-endif()
-if(NOT GMP_LIBRARIES)
- set(GMP_in_cache FALSE)
-endif()
-
-# Is it already configured?
-if (GMP_in_cache)
-
- set(GMP_FOUND TRUE)
-
-else()
-
- find_path(GMP_INCLUDE_DIR
- NAMES gmp.h
- HINTS ENV GMP_INC_DIR
- ENV GMP_DIR
- PATH_SUFFIXES include
- DOC "The directory containing the GMP header files"
- )
-
- find_library(GMP_LIBRARIES NAMES gmp libgmp-10
- HINTS ENV GMP_LIB_DIR
- ENV GMP_DIR
- PATH_SUFFIXES lib
- DOC "Path to the GMP library"
- )
-
- if ( GMP_LIBRARIES )
- get_filename_component(GMP_LIBRARIES_DIR ${GMP_LIBRARIES} PATH CACHE )
- endif()
-
- # Attempt to load a user-defined configuration for GMP if couldn't be found
- if ( NOT GMP_INCLUDE_DIR OR NOT GMP_LIBRARIES_DIR )
- include( GMPConfig OPTIONAL )
- endif()
-
- find_package_handle_standard_args(GMP "DEFAULT_MSG" GMP_LIBRARIES GMP_INCLUDE_DIR)
-
-endif()