fixed incorrect pdb2gmx output with multiple (altloc) atom entries in specbonds
[gromacs.git] / cmake / gmxTestCatamount.cmake
blob57272b6aabd0c75c6bfab3b850f562f51525d428
1 # - Define macro to check we are compiling for CRAY XT catamount
3 #  GMX_TEST_CATAMOUNT(VARIABLE)
5 #  VARIABLE will be set to true if we are compiling for catamount
8 MACRO(GMX_TEST_CATAMOUNT VARIABLE)
9     IF(NOT DEFINED ${VARIABLE})
11         MESSAGE(STATUS "Checking for CRAY XT Catamount compile")
13         # First check without any special flags
14         TRY_COMPILE(CATAMOUNT_COMPILE_OK "${CMAKE_BINARY_DIR}"    
15                     "${CMAKE_SOURCE_DIR}/cmake/TestCatamount.c")
17         if(CATAMOUNT_COMPILE_OK)
18             MESSAGE(STATUS "Checking for CRAY XT Catamount target - yes")                       
19         else(CATAMOUNT_COMPILE_OK)
20             MESSAGE(STATUS "Checking for CRAY XT Catamount target - no")
21         endif(CATAMOUNT_COMPILE_OK)
23         set(${VARIABLE} ${CATAMOUNT_COMPILE_OK} CACHE INTERNAL 
24             "Result of test for CRAY XT Catamount target" FORCE)
25         
26     ENDIF(NOT DEFINED ${VARIABLE})
27 ENDMACRO(GMX_TEST_CATAMOUNT VARIABLE)