Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 36 lines (26 sloc) 1.006 kB
871258d @jeremytregunna Ok, fixed FFI messup, typo in IoClutterActorBox.c and disabled OpenGL…
jeremytregunna authored
1 # Try to find the FFI librairies
2 # FFI_FOUND - system has FFI lib
3 # FFI_INCLUDE_DIR - the FFI include directory
4 # FFI_LIBRARIES - Libraries needed to use FFI
c96a485 @jeremytregunna Added CFFI addon to CMake build system
jeremytregunna authored
5
38e628f @petrm CFFI is now using PkgConfig in addition to direct header search. Merg…
petrm authored
6 if (FFI_INCLUDE_DIRS AND FFI_LIBRARIES)
871258d @jeremytregunna Ok, fixed FFI messup, typo in IoClutterActorBox.c and disabled OpenGL…
jeremytregunna authored
7 # Already in cache, be silent
8 set(FFI_FIND_QUIETLY TRUE)
38e628f @petrm CFFI is now using PkgConfig in addition to direct header search. Merg…
petrm authored
9 endif (FFI_INCLUDE_DIRS AND FFI_LIBRARIES)
10
11 INCLUDE(FindPkgConfig)
12
13 IF ( FFI_FIND_REQUIRED )
14 SET( _pkgconfig_REQUIRED "REQUIRED" )
15 ELSE ( FFI_FIND_REQUIRED )
16 SET( _pkgconfig_REQUIRED "" )
17 ENDIF ( FFI_FIND_REQUIRED )
18
19
20 PKG_SEARCH_MODULE( FFI ${_pkgconfig_REQUIRED} libffi )
21 IF ( PKG_CONFIG_FOUND )
22 SET ( FFI_FOUND TRUE )
23 ENDIF ( PKG_CONFIG_FOUND )
24
25 IF ( NOT FFI_FOUND AND NOT PKG_CONFIG_FOUND )
26 find_path(FFI_INCLUDE_DIR NAMES ffi.h )
27 find_library(FFI_LIBRARIES NAMES ffi libffi )
28 SET(FFI_INCLUDE_DIRS ${FFI_INCLUDE_DIR})
29 ENDIF ( NOT FFI_FOUND AND NOT PKG_CONFIG_FOUND )
c96a485 @jeremytregunna Added CFFI addon to CMake build system
jeremytregunna authored
30
31
871258d @jeremytregunna Ok, fixed FFI messup, typo in IoClutterActorBox.c and disabled OpenGL…
jeremytregunna authored
32 include(FindPackageHandleStandardArgs)
38e628f @petrm CFFI is now using PkgConfig in addition to direct header search. Merg…
petrm authored
33 FIND_PACKAGE_HANDLE_STANDARD_ARGS(FFI DEFAULT_MSG FFI_INCLUDE_DIRS FFI_LIBRARIES)
c96a485 @jeremytregunna Added CFFI addon to CMake build system
jeremytregunna authored
34
38e628f @petrm CFFI is now using PkgConfig in addition to direct header search. Merg…
petrm authored
35 mark_as_advanced(FFI_INCLUDE_DIRS FFI_LIBRARIES)
Something went wrong with that request. Please try again.