1
Index: b/cmake/cloog-isl-config.cmake
2
===================================================================
4
+++ b/cmake/cloog-isl-config.cmake
6
+# Try to find the cloog-isl library
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
13
+if (CLOOG_ISL_INCLUDE_DIR AND CLOOG_ISL_LIBRARY)
14
+ # Already in cache, be silent
15
+ set(CLOOG_ISL_FIND_QUIETLY TRUE)
18
+find_path(CLOOG_ISL_INCLUDE_DIR NAMES cloog/isl/cloog.h)
19
+find_library(CLOOG_ISL_LIBRARY NAMES cloog-isl)
21
+if (CLOOG_ISL_LIBRARY AND CLOOG_ISL_INCLUDE_DIR)
22
+ message(STATUS "Library cloog-isl found =) ${CLOOG_ISL_LIBRARY}")
24
+ message(STATUS "Library cloog-isl not found =(")
28
+include(FindPackageHandleStandardArgs)
29
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLOOG_ISL DEFAULT_MSG CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)
31
+mark_as_advanced(CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)
32
Index: b/cmake/isl-config.cmake
33
===================================================================
35
+++ b/cmake/isl-config.cmake
37
+# Try to find the isl library
39
+# ISL_FOUND - System has isl lib
40
+# ISL_INCLUDE_DIR - The isl include directory
41
+# ISL_LIBRARY - Library needed to use isl
44
+if (ISL_INCLUDE_DIR AND ISL_LIBRARY)
45
+ # Already in cache, be silent
46
+ set(ISL_FIND_QUIETLY TRUE)
49
+find_path(ISL_INCLUDE_DIR NAMES isl/version.h)
50
+find_library(ISL_LIBRARY NAMES isl)
52
+if (ISL_LIBRARY AND ISL_INCLUDE_DIR)
53
+ message(STATUS "Library isl found =) ${ISL_LIBRARY}")
55
+ message(STATUS "Library isl not found =(")
58
+include(FindPackageHandleStandardArgs)
59
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ISL DEFAULT_MSG ISL_INCLUDE_DIR ISL_LIBRARY)
61
+mark_as_advanced(ISL_INCLUDE_DIR ISL_LIBRARY)