Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 32 lines (25 sloc) 0.898 kb
dd3d773 @omf Thread addon does not use zlib. AsyncRequest needs to link against re…
omf authored
1 # Try to find aio.h for AsyncRequest
2
3
4 IF (ASYNCREQUEST_INCLUDE_DIR)
5 # Already in cache, be silent
6 SET(ASYNCREQUEST_FIND_QUIETLY TRUE)
7 ENDIF (ASYNCREQUEST_INCLUDE_DIR)
8
9 FIND_PATH(ASYNCREQUEST_INCLUDE_DIR aio.h)
10
11 IF(ASYNCREQUEST_INCLUDE_DIR)
12 SET(ASYNCREQUEST_FOUND TRUE)
13 ENDIF(ASYNCREQUEST_INCLUDE_DIR)
14
15 IF(ASYNCREQUEST_FOUND)
16 set(CMAKE_REQUIRED_INCLUDES ${ASYNCREQUEST_INCLUDE_DIR})
17 set(CMAKE_REQUIRED_INCLUDES)
18 IF(NOT ASYNCREQUEST_FIND_QUIETLY)
7c306b4 @omf Better cmake messages for Fnmatch and AsyncRequest
omf authored
19 MESSAGE(STATUS "Found AsyncRequest headers: ${ASYNCREQUEST_INCLUDE_DIR}/aio.h")
dd3d773 @omf Thread addon does not use zlib. AsyncRequest needs to link against re…
omf authored
20 ENDIF(NOT ASYNCREQUEST_FIND_QUIETLY)
21 ELSE(ASYNCREQUEST_FOUND)
22 IF(AsyncRequest_FIND_REQUIRED)
23 MESSAGE(FATAL_ERROR "Could not find AsyncRequest")
24 ENDIF(AsyncRequest_FIND_REQUIRED)
25 ENDIF(ASYNCREQUEST_FOUND)
26
27 MARK_AS_ADVANCED(
28 ASYNCREQUEST_INCLUDE_DIR
29 ASYNCREQUEST_LIBRARIES
30 ASYNCREQUEST_SECOND_ARGUMENT_IS_CONST
31 )
Something went wrong with that request. Please try again.