Add initial support for python bindings
[alexxy/gromacs.git] / cmake / gmxManageSuffixes.cmake
index 7e404f09677268bac556baf85363ca7091fd2d25..1783f7f20d980b08188121653c282084351ed1e5 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,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.
@@ -68,6 +68,9 @@ if (GMX_DEFAULT_SUFFIX)
         message(STATUS "Using default library suffix: \"${GMX_LIBS_SUFFIX}\"")
     endif()
 else()
+    if ("${GMX_LIBS_SUFFIX}" MATCHES "^_mdrun")
+        message(FATAL_ERROR "Library suffix (GMX_LIBS_SUFFIX) cannot start with '_mdrun', as that is reserved for internal use")
+    endif()
     gmx_check_if_changed(SUFFIXES_CHANGED
                          GMX_DEFAULT_SUFFIX GMX_BINARY_SUFFIX GMX_LIBS_SUFFIX)
     if (SUFFIXES_CHANGED)
@@ -79,4 +82,4 @@ unset(SUFFIXES_CHANGED)
 
 if (GMX_BUILD_MDRUN_ONLY)
     set(GMX_LIBS_SUFFIX "_mdrun${GMX_LIBS_SUFFIX}")
-endif ()
+endif()