#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2010,2012, by the GROMACS development team, led by
+# Copyright (c) 2010,2012,2014, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
# Start with __restrict__, since that is the C++ default keyword.
FOREACH(KEYWORD "__restrict__" "__restrict" "restrict")
IF(NOT TEST_${VARIABLE})
- TRY_COMPILE(TEST_${VARIABLE} "${CMAKE_BINARY_DIR}"
+ TRY_COMPILE(TEST_${VARIABLE} "${CMAKE_BINARY_DIR}"
"${CMAKE_SOURCE_DIR}/cmake/TestRestrict.c"
COMPILE_DEFINITIONS "-DTESTRESTRICTDEF=${KEYWORD}" )
SET(LAST_RESTRICT_KEYWORD ${KEYWORD})
- ENDIF(NOT TEST_${VARIABLE})
+ ENDIF()
ENDFOREACH(KEYWORD)
IF(TEST_${VARIABLE})
SET(${VARIABLE} ${LAST_RESTRICT_KEYWORD} CACHE INTERNAL "Restrict keyword" FORCE)
MESSAGE(STATUS "Checking for restrict keyword - ${LAST_RESTRICT_KEYWORD}")
- ELSE(TEST_${VARIABLE})
+ ELSE()
SET(${VARIABLE} " " CACHE INTERNAL "Restrict keyword" FORCE)
MESSAGE(STATUS "Checking for restrict keyword - not found")
- ENDIF(TEST_${VARIABLE})
+ ENDIF()
- ENDIF(NOT DEFINED TEST_${VARIABLE})
+ ENDIF()
ENDMACRO(GMX_TEST_RESTRICT VARIABLE)
-
-
-
-