summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-05-28 16:33:50 +0300
committerAvi Levin <avi.levin@samsung.com>2015-05-31 09:48:59 +0300
commit75c3fa46b28ca46d35ac81e6e78a905cc6183fc3 (patch)
tree91c096b21be5744a4131641e65413d729687a50b
parent6976f24196897e2cd2c969fdaf1552d8a1b694c1 (diff)
Remove ffi cmake module
-rw-r--r--cmake/Modules/FindFfi.cmake40
1 files changed, 0 insertions, 40 deletions
diff --git a/cmake/Modules/FindFfi.cmake b/cmake/Modules/FindFfi.cmake
deleted file mode 100644
index c9224d1..0000000
--- a/cmake/Modules/FindFfi.cmake
+++ /dev/null
@@ -1,40 +0,0 @@
1# - Try to find ffi
2# Once done this will define
3# FFI_FOUND - System has ffi
4# FFI_INCLUDE_DIRS - The ffi include directories
5# FFI_LIBRARIES - The libraries needed to use ffi
6# FFI_LDFLAGS_OTHER - Other LDFLAGS needed te use ffi.
7# FFI_DEFINITIONS - Compiler switches required for using ffi
8
9find_package(PkgConfig)
10if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1")
11 # "QUIET" was introduced in 2.8.2
12 set(_QUIET QUIET)
13endif ()
14pkg_check_modules(PC_LIBFFI ${_QUIET} libffi)
15#set(FFI_DEFINITIONS ${PC_LIBFFI_CFLAGS_OTHER})
16#set(FFI_LDFLAGS_OTHER ${PC_LIBFFI_LDFLAGS_OTHER})
17
18# before verison 2.8.11 variable CMAKE_LIBRARY_ARCHITECTURE wasn't automatically added to search path
19if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.11")
20 set(FIND_PATH_HINTS ${PC_LIBFFI_INCLUDEDIR}/${CMAKE_LIBRARY_ARCHITECTURE})
21endif ()
22
23find_path(FFI_INCLUDE_DIR ffi.h
24 HINTS ${PC_LIBFFI_INCLUDEDIR} ${PC_LIBFFI_INCLUDE_DIRS}
25 ${FIND_PATH_HINTS}
26 )
27
28find_library(FFI_LIBRARY NAMES ffi libffi
29 HINTS ${PC_LIBFFI_LIBDIR} ${PC_LIBFFI_LIBRARY_DIRS})
30
31set(FFI_INCLUDE_DIRS ${FFI_INCLUDE_DIR})
32set(FFI_LIBRARIES ${FFI_LIBRARY})
33
34#include(FindPackageHandleStandardArgs)
35# handle the QUIETLY and REQUIRED arguments and set EINA_FOUND to TRUE
36# if all listed variables are TRUE
37find_package_handle_standard_args(ffi DEFAULT_MSG
38 FFI_LIBRARY)
39
40mark_as_advanced(FFI_INCLUDE_DIRS FFI_LIBRARY)