Change-Id: I72cf4cc73e05e4192764c4e4b551d22d78274922
Signed-off-by: Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
#######################
## Python bindings
#######################
+
+# We only set option here, actual detection goes to
+# src/python/CMakeLists.txt due to bugs in FindSIP
option(GMX_PYTHON_BINDINGS "Enable GROMACS Python API bindings" OFF)
-if (GMX_PYTHON_BINDINGS)
- # We use SIP so we need to find it
- find_package(PythonLibrary REQUIRED)
- find_package(SIP REQUIRED)
-endif()
#######################
# the research papers on the package. Check out http://www.gromacs.org.
#
+find_package(PythonLibrary REQUIRED)
+find_package(SIP REQUIRED)
+
include(SIPMacros)
include(PythonMacros)