1 # - Define macro to check if pipes are supported
3 # GMX_TEST_PIPES(VARIABLE)
5 # VARIABLE will be set to the keyword
7 # Remember to have a cmakedefine for it too...
9 MACRO(GMX_TEST_PIPES VARIABLE)
10 IF(NOT DEFINED ${VARIABLE})
12 MESSAGE(STATUS "Checking for pipe support")
14 TRY_COMPILE(HAVE_PIPES "${CMAKE_BINARY_DIR}"
15 "${CMAKE_SOURCE_DIR}/cmake/TestPipes.c")
17 ENDIF(NOT DEFINED ${VARIABLE})
18 ENDMACRO(GMX_TEST_PIPES VARIABLE)