~ubuntu-branches/ubuntu/utopic/cloog/utopic

« back to all changes in this revision

Viewing changes to debian/patches/add-cmake-files.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-26 14:21:11 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140226142111-vsbb1isby30uundd
Tags: 0.18.2-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: b/cmake/cloog-isl-config.cmake
 
2
===================================================================
 
3
--- /dev/null
 
4
+++ b/cmake/cloog-isl-config.cmake
 
5
@@ -0,0 +1,26 @@
 
6
+# Try to find the cloog-isl library
 
7
+
 
8
+# CLOOG_ISL_FOUND       - System has cloog-isl lib
 
9
+# CLOOG_ISL_INCLUDE_DIR - The cloog-isl include directory
 
10
+# CLOOG_ISL_LIBRARY     - Library needed to use cloog-isl
 
11
+
 
12
+
 
13
+if (CLOOG_ISL_INCLUDE_DIR AND CLOOG_ISL_LIBRARY)
 
14
+       # Already in cache, be silent
 
15
+       set(CLOOG_ISL_FIND_QUIETLY TRUE)
 
16
+endif()
 
17
+
 
18
+find_path(CLOOG_ISL_INCLUDE_DIR NAMES cloog/isl/cloog.h)
 
19
+find_library(CLOOG_ISL_LIBRARY NAMES cloog-isl)
 
20
+
 
21
+if (CLOOG_ISL_LIBRARY AND CLOOG_ISL_INCLUDE_DIR)
 
22
+       message(STATUS "Library cloog-isl found =) ${CLOOG_ISL_LIBRARY}")
 
23
+else()
 
24
+       message(STATUS "Library cloog-isl not found =(")
 
25
+endif()
 
26
+
 
27
+
 
28
+include(FindPackageHandleStandardArgs)
 
29
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLOOG_ISL DEFAULT_MSG CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)
 
30
+
 
31
+mark_as_advanced(CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)
 
32
Index: b/cmake/isl-config.cmake
 
33
===================================================================
 
34
--- /dev/null
 
35
+++ b/cmake/isl-config.cmake
 
36
@@ -0,0 +1,25 @@
 
37
+# Try to find the isl library
 
38
+
 
39
+# ISL_FOUND       - System has isl lib
 
40
+# ISL_INCLUDE_DIR - The isl include directory
 
41
+# ISL_LIBRARY     - Library needed to use isl
 
42
+
 
43
+
 
44
+if (ISL_INCLUDE_DIR AND ISL_LIBRARY)
 
45
+       # Already in cache, be silent
 
46
+       set(ISL_FIND_QUIETLY TRUE)
 
47
+endif()
 
48
+
 
49
+find_path(ISL_INCLUDE_DIR NAMES isl/version.h)
 
50
+find_library(ISL_LIBRARY NAMES isl)
 
51
+
 
52
+if (ISL_LIBRARY AND ISL_INCLUDE_DIR)
 
53
+       message(STATUS "Library isl found =) ${ISL_LIBRARY}")
 
54
+else()
 
55
+       message(STATUS "Library isl not found =(")
 
56
+endif()
 
57
+
 
58
+include(FindPackageHandleStandardArgs)
 
59
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ISL DEFAULT_MSG ISL_INCLUDE_DIR ISL_LIBRARY)
 
60
+
 
61
+mark_as_advanced(ISL_INCLUDE_DIR ISL_LIBRARY)