package/opencv: fix build failure on x86
[buildroot-gz.git] / package / cloog / cloog-0001-add-missing-files.patch
blob23743cc0eb9244fa3077488b2ffe47a14d783bda
1 Add CMake related files missing from the release tarball
3 Due to a bug in the cloog release, a few files were missing from the
4 release tarball. This patch re-adds those files, which are needed for
5 the build to work. This patch can be dropped when cloog is bumped.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Index: b/cmake/isl-config.cmake
10 ===================================================================
11 --- /dev/null
12 +++ b/cmake/isl-config.cmake
13 @@ -0,0 +1,25 @@
14 +# Try to find the isl library
16 +# ISL_FOUND - System has isl lib
17 +# ISL_INCLUDE_DIR - The isl include directory
18 +# ISL_LIBRARY - Library needed to use isl
21 +if (ISL_INCLUDE_DIR AND ISL_LIBRARY)
22 + # Already in cache, be silent
23 + set(ISL_FIND_QUIETLY TRUE)
24 +endif()
26 +find_path(ISL_INCLUDE_DIR NAMES isl/version.h)
27 +find_library(ISL_LIBRARY NAMES isl)
29 +if (ISL_LIBRARY AND ISL_INCLUDE_DIR)
30 + message(STATUS "Library isl found =) ${ISL_LIBRARY}")
31 +else()
32 + message(STATUS "Library isl not found =(")
33 +endif()
35 +include(FindPackageHandleStandardArgs)
36 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(ISL DEFAULT_MSG ISL_INCLUDE_DIR ISL_LIBRARY)
38 +mark_as_advanced(ISL_INCLUDE_DIR ISL_LIBRARY)
39 Index: b/cmake/cloog-isl-config.cmake
40 ===================================================================
41 --- /dev/null
42 +++ b/cmake/cloog-isl-config.cmake
43 @@ -0,0 +1,26 @@
44 +# Try to find the cloog-isl library
46 +# CLOOG_ISL_FOUND - System has cloog-isl lib
47 +# CLOOG_ISL_INCLUDE_DIR - The cloog-isl include directory
48 +# CLOOG_ISL_LIBRARY - Library needed to use cloog-isl
51 +if (CLOOG_ISL_INCLUDE_DIR AND CLOOG_ISL_LIBRARY)
52 + # Already in cache, be silent
53 + set(CLOOG_ISL_FIND_QUIETLY TRUE)
54 +endif()
56 +find_path(CLOOG_ISL_INCLUDE_DIR NAMES cloog/isl/cloog.h)
57 +find_library(CLOOG_ISL_LIBRARY NAMES cloog-isl)
59 +if (CLOOG_ISL_LIBRARY AND CLOOG_ISL_INCLUDE_DIR)
60 + message(STATUS "Library cloog-isl found =) ${CLOOG_ISL_LIBRARY}")
61 +else()
62 + message(STATUS "Library cloog-isl not found =(")
63 +endif()
66 +include(FindPackageHandleStandardArgs)
67 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLOOG_ISL DEFAULT_MSG CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)
69 +mark_as_advanced(CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)