diff options
Diffstat (limited to 'cmake/FindGuile.cmake')
-rw-r--r-- | cmake/FindGuile.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/FindGuile.cmake b/cmake/FindGuile.cmake index 69e3ab011..6002876f4 100644 --- a/cmake/FindGuile.cmake +++ b/cmake/FindGuile.cmake @@ -34,4 +34,12 @@ endif() find_package(PkgConfig) if(PKG_CONFIG_FOUND) pkg_search_module(GUILE guile-2.0) + if(GUILE_FOUND) + # check if variable "scm_install_gmp_memory_functions" exists + set(CMAKE_REQUIRED_INCLUDES ${GUILE_INCLUDE_DIRS}) + set(CMAKE_REQUIRED_LIBRARIES ${GUILE_LDFLAGS}) + check_symbol_exists(scm_install_gmp_memory_functions "libguile.h" HAVE_GUILE_GMP_MEMORY_FUNCTIONS) + set(CMAKE_REQUIRED_INCLUDES) + set(CMAKE_REQUIRED_LIBRARIES) + endif() endif() |