diff options
Diffstat (limited to 'cmake/FindGuile.cmake')
-rw-r--r-- | cmake/FindGuile.cmake | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/cmake/FindGuile.cmake b/cmake/FindGuile.cmake index 635e2b2f6..748d12dca 100644 --- a/cmake/FindGuile.cmake +++ b/cmake/FindGuile.cmake @@ -31,21 +31,7 @@ IF(GUILE_FOUND) SET(GUILE_FIND_QUIETLY TRUE) ENDIF(GUILE_FOUND) -FIND_PATH(GUILE_INCLUDE_DIR libguile.h /usr/include /usr/local/include /usr/include/libguile /usr/local/include/libguile) - -FIND_LIBRARY(GUILE_LIBRARY NAMES guile PATH /usr/lib /usr/local/lib) - -IF(GUILE_INCLUDE_DIR AND GUILE_LIBRARY) - SET(GUILE_FOUND TRUE) - SET(GUILE_INCLUDE_DIRS ${GUILE_INCLUDE_DIR}) - SET(GUILE_LIBRARIES ${GUILE_LIBRARY}) -ELSE(GUILE_INCLUDE_DIR AND GUILE_LIBRARY) - SET(GUILE_FOUND FALSE) - SET(GUILE_INCLUDE_DIRS) - SET(GUILE_LIBRARIES) -ENDIF(GUILE_INCLUDE_DIR AND GUILE_LIBRARY) - -MARK_AS_ADVANCED( - GUILE_INCLUDE_DIR - GUILE_LIBRARY - ) +FIND_PACKAGE(PkgConfig) +IF(PKG_CONFIG_FOUND) + pkg_search_module(GUILE guile-2.0 guile-1.8) +ENDIF(PKG_CONFIG_FOUND) |