Get rid of the warning about ignoring the return value of fgets
[cloog.git] / cmake / cloog-isl-config.cmake
blob1cdfedca499bc2c14e54d5d329114f50318f5ac2
1 # Try to find the cloog-isl library
3 # CLOOG_ISL_FOUND       - System has cloog-isl lib
4 # CLOOG_ISL_INCLUDE_DIR - The cloog-isl include directory
5 # CLOOG_ISL_LIBRARY     - Library needed to use cloog-isl
8 if (CLOOG_ISL_INCLUDE_DIR AND CLOOG_ISL_LIBRARY)
9         # Already in cache, be silent
10         set(CLOOG_ISL_FIND_QUIETLY TRUE)
11 endif()
13 find_path(CLOOG_ISL_INCLUDE_DIR NAMES cloog/isl/cloog.h)
14 find_library(CLOOG_ISL_LIBRARY NAMES cloog-isl)
16 if (CLOOG_ISL_LIBRARY AND CLOOG_ISL_INCLUDE_DIR)
17         message(STATUS "Library cloog-isl found =) ${CLOOG_ISL_LIBRARY}")
18 else()
19         message(STATUS "Library cloog-isl not found =(")
20 endif()
23 include(FindPackageHandleStandardArgs)
24 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CLOOG_ISL DEFAULT_MSG CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)
26 mark_as_advanced(CLOOG_ISL_INCLUDE_DIR CLOOG_ISL_LIBRARY)