Fix compilation of python bindings
[alexxy/gromacs.git] / 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()
 
 
 #######################