Add initial support for python bindings
[alexxy/gromacs.git] / cmake / gmxTestMPI_IN_PLACE.cmake
index 71fef63fb17b255edd6c45333ddd878bc36118c2..3ed73251a9f4d8ffa47ac40e902aa88b7fb39fac 100644 (file)
@@ -1,10 +1,10 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2012, by the GROMACS development team, led by
-# David van der Spoel, Berk Hess, Erik Lindahl, and including many
-# others, as listed in the AUTHORS file in the top-level source
-# directory and at http://www.gromacs.org.
+# Copyright (c) 2009,2011,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.
 #
 # GROMACS is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public License
@@ -31,7 +31,7 @@
 #
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
-#
+
 # - Define macro to check if MPI_IN_PLACE exists
 #
 #  GMX_TEST_MPI_IN_PLACE(VARIABLE)
@@ -56,16 +56,16 @@ int main(void) {
 
     if(MPI_IN_PLACE_COMPILE_OK)
         MESSAGE(STATUS "Checking for MPI_IN_PLACE - yes")
-    else(MPI_IN_PLACE_COMPILE_OK)
+    else()
         MESSAGE(STATUS "Checking for MPI_IN_PLACE - no")
-    endif(MPI_IN_PLACE_COMPILE_OK)
+    endif()
     set(MPI_IN_PLACE_COMPILE_OK "${MPI_IN_PLACE_COMPILE_OK}" CACHE INTERNAL "Result of mpi_in_place check")
     set(CMAKE_REQUIRED_DEFINITIONS)
     set(CMAKE_REQUIRED_INCLUDES)
     set(CMAKE_REQUIRED_LIBRARIES)
   endif()
   if (MPI_IN_PLACE_COMPILE_OK)
-    set(${VARIABLE} ${MPI_IN_PLACE_COMPILE_OK} 
+    set(${VARIABLE} ${MPI_IN_PLACE_COMPILE_OK}
       "Result of test for MPI_IN_PLACE")
   endif()
 ENDMACRO(GMX_TEST_MPI_IN_PLACE VARIABLE)