diff --git a/Code/Mantid/MantidPlot/CMakeLists.txt b/Code/Mantid/MantidPlot/CMakeLists.txt index 2fe8e8f0975e8af4ca270cc06e17ec33c955665d..79fb403a0cb569df29d97a45fc592d650baf222f 100644 --- a/Code/Mantid/MantidPlot/CMakeLists.txt +++ b/Code/Mantid/MantidPlot/CMakeLists.txt @@ -456,6 +456,7 @@ include ( UseSystemQt4 ) # Do the sip generation. ########################################################################### +include_directories ( ${PYTHON_INCLUDE_PATH} ) find_package ( PyQt4 REQUIRED ) find_package ( SIP REQUIRED ) separate_arguments ( PYQT4_SIP_FLAGS ) diff --git a/Code/Mantid/MantidQt/CMakeLists.txt b/Code/Mantid/MantidQt/CMakeLists.txt index 3951190d743500f4956040412f430657ca8b039c..2a40f566a9ca85b7475cf3f7363b5a6faf7d1b17 100644 --- a/Code/Mantid/MantidQt/CMakeLists.txt +++ b/Code/Mantid/MantidQt/CMakeLists.txt @@ -52,6 +52,7 @@ endif () # Do the sip generation, for python bindings ########################################################################### +include_directories ( ${PYTHON_INCLUDE_PATH} ) find_package ( PyQt4 REQUIRED ) find_package ( SIP REQUIRED ) separate_arguments ( PYQT4_SIP_FLAGS )