[sword-svn] r2757 - trunk/bindings/swig/python
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Fri Jan 4 14:34:15 MST 2013
Author: greg.hellings
Date: 2013-01-04 14:34:15 -0700 (Fri, 04 Jan 2013)
New Revision: 2757
Modified:
trunk/bindings/swig/python/CMakeLists.txt
Log:
Add check for Python dependencies.
Check for the Python.h header so we can offer solid feedback to the
builder bout missing dependencies at configure time instead of at
build time.
Modified: trunk/bindings/swig/python/CMakeLists.txt
===================================================================
--- trunk/bindings/swig/python/CMakeLists.txt 2012-12-31 03:12:26 UTC (rev 2756)
+++ trunk/bindings/swig/python/CMakeLists.txt 2013-01-04 21:34:15 UTC (rev 2757)
@@ -12,7 +12,12 @@
#SWIG_LINK_LIBRARIES(Sword ${PYTHON_LIBRARIES} ${SWORD_LINK_NAME})
FIND_PACKAGE(PythonInterp REQUIRED)
+FIND_PACKAGE(PythonLibs)
+IF(NOT PYTHONLIBS_FOUND)
+ MESSAGE(FATAL_ERROR "Failed to locate Python.h header.")
+ENDIF(NOT PYTHONLIBS_FOUND)
+
SET(PY_SCRIPT "#!${PYTHON_EXECUTABLE}
from distutils.core import setup, Extension
More information about the sword-cvs
mailing list