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