diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-16 22:37:31 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-16 22:37:31 +0100 |
commit | 0f143da012c23dbcc41751560a83ea68f587618f (patch) | |
tree | 9162f410de81177f7697a4fb203bad1906e24d4a /cmake/FindGuile.cmake | |
parent | 280e9bd0b1e54f228c64aac5310b9e6f9b3b8da9 (diff) | |
download | weechat-0f143da012c23dbcc41751560a83ea68f587618f.zip |
guile: fix compilation with guile 2.0
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) |