Browse Source

Edit in Sylvan/cmake: Allow for hints about gmp location

tempestpy_adaptions
sjunges 8 years ago
parent
commit
1c22fdabe1
  1. 7
      resources/3rdparty/sylvan/cmake/FindGMP.cmake

7
resources/3rdparty/sylvan/cmake/FindGMP.cmake

@ -8,13 +8,16 @@
find_package(PkgConfig) find_package(PkgConfig)
pkg_check_modules(PC_GMP QUIET gmp) pkg_check_modules(PC_GMP QUIET gmp)
set(GMP_INCLUDE "" CACHE PATH "include dir")
set(GMP_LOCATION "" CACHE PATH "location dir")
set(GMP_DEFINITIONS ${PC_GMP_CFLAGS_OTHER}) set(GMP_DEFINITIONS ${PC_GMP_CFLAGS_OTHER})
find_path(GMP_INCLUDE_DIR gmp.h find_path(GMP_INCLUDE_DIR gmp.h
HINTS ${PC_GMP_INCLUDEDIR} ${PC_GMP_INCLUDE_DIRS})
HINTS ${GMP_INCLUDE} ${PC_GMP_INCLUDEDIR} ${PC_GMP_INCLUDE_DIRS})
find_library(GMP_LIBRARIES NAMES gmp libgmp find_library(GMP_LIBRARIES NAMES gmp libgmp
HINTS ${PC_GMP_LIBDIR} ${PC_GMP_LIBRARY_DIRS})
HINTS ${GMP_LOCATION} ${PC_GMP_LIBDIR} ${PC_GMP_LIBRARY_DIRS} NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set GMP_FOUND to TRUE # handle the QUIETLY and REQUIRED arguments and set GMP_FOUND to TRUE

Loading…
Cancel
Save