From 5c94bc0744fb6ea6b52071e40da931b519780f17 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Fri, 1 Dec 2017 18:12:26 +0100 Subject: [PATCH] SIP_INCLUDE_DIR must be added after PYTHON_INCLUDE_DIRS Otherwise with system Python and compiled SIP, the system sip.h header (present in PYTHON_INCLUDE_DIRS) is used. --- src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt | 2 +- src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt b/src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt index ded75b88f..ee4db4cc8 100755 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/CMakeLists.txt @@ -28,8 +28,8 @@ ENDIF() INCLUDE_DIRECTORIES( ${CAS_INCLUDE_DIRS} ${QT_INCLUDES} - ${SIP_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} + ${SIP_INCLUDE_DIRS} ${PTHREAD_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${OMNIORB_INCLUDE_DIR} diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt b/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt index 589e537e1..90208394d 100755 --- a/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt +++ b/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt @@ -30,8 +30,8 @@ ENDIF() INCLUDE_DIRECTORIES( ${CAS_INCLUDE_DIRS} ${QT_INCLUDES} - ${SIP_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS} + ${SIP_INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/src/CAM -- 2.39.2