Fix compilation of python bindings
authorAlexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
Tue, 14 Oct 2014 09:33:12 +0000 (13:33 +0400)
committerAlexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
Tue, 14 Oct 2014 09:33:12 +0000 (13:33 +0400)
Change-Id: I72cf4cc73e05e4192764c4e4b551d22d78274922
Signed-off-by: Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
CMakeLists.txt
src/python/CMakeLists.txt

index b876fc88552884f8590064a2cb842e95f3bdd17d..923134e69964b3ba242db34cbb31372361f75c9f 100644 (file)
@@ -866,12 +866,10 @@ set(GMX_GPU_DETECTION_DONE TRUE CACHE INTERNAL "Whether GPU detection has alread
 #######################
 ## 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()
 
 
 #######################
index 84c869cbaaf2d27b0fbc9019eadc0311d82cd39b..1aec631f198420afd1d040f0f983af6b801c7b16 100644 (file)
@@ -33,6 +33,9 @@
 # the research papers on the package. Check out http://www.gromacs.org.
 #
 
+find_package(PythonLibrary REQUIRED)
+find_package(SIP REQUIRED)
+
 include(SIPMacros)
 include(PythonMacros)