Merge branch release-4-6
[alexxy/gromacs.git] / cmake / gmxTestPipes.cmake
1 # - Define macro to check if pipes are supported
2 #
3 #  GMX_TEST_PIPES(VARIABLE)
4 #
5 #  VARIABLE will be set to the keyword
6 #
7 #  Remember to have a cmakedefine for it too...
8
9 MACRO(GMX_TEST_PIPES VARIABLE)
10     IF(NOT DEFINED ${VARIABLE})
11         
12         MESSAGE(STATUS "Checking for pipe support")
13
14         TRY_COMPILE(HAVE_PIPES "${CMAKE_BINARY_DIR}"    
15                     "${CMAKE_SOURCE_DIR}/cmake/TestPipes.c")
16
17     ENDIF(NOT DEFINED ${VARIABLE})
18 ENDMACRO(GMX_TEST_PIPES VARIABLE)
19
20
21
22