From: rnv Date: Mon, 12 Apr 2021 18:45:55 +0000 (+0300) Subject: Build under Windows with ParaView-5.9.0 and sip-5.5.0 X-Git-Tag: V9_7_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24e1975ff9b05c5dd9d49d7ce5258adb9d242940;p=tools%2Fconfiguration.git Build under Windows with ParaView-5.9.0 and sip-5.5.0 --- diff --git a/cmake/FindSIP.cmake b/cmake/FindSIP.cmake index 498e322..48927aa 100644 --- a/cmake/FindSIP.cmake +++ b/cmake/FindSIP.cmake @@ -37,13 +37,17 @@ ENDIF() FIND_PROGRAM(SIP_EXECUTABLE NAMES sip5 sip4 sip HINTS $ENV{SIP_ROOT_DIR} - PATH_SUFFIXES bin) + PATH_SUFFIXES bin Scripts) IF(SIP_EXECUTABLE) # Set path to sip's Python module GET_FILENAME_COMPONENT(SIP_PYTHONPATH "${SIP_EXECUTABLE}" PATH) # /bin/sip -> /bin GET_FILENAME_COMPONENT(SIP_PYTHONPATH "${SIP_PYTHONPATH}" PATH) # /bin -> - SET(SIP_PYTHONPATH "${SIP_PYTHONPATH}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages") + IF(WIN32) + SET(SIP_PYTHONPATH "${SIP_PYTHONPATH}/lib/site-packages") + ELSE() + SET(SIP_PYTHONPATH "${SIP_PYTHONPATH}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages") + ENDIF() # Detect sip version EXECUTE_PROCESS(COMMAND ${SIP_EXECUTABLE} "-V" @@ -57,7 +61,7 @@ IF(SIP_VERSION AND SIP_VERSION VERSION_GREATER_EQUAL "5") FIND_PROGRAM(SIP_MODULE_EXECUTABLE NAMES sip-module HINTS $ENV{SIP_ROOT_DIR} - PATH_SUFFIXES bin) + PATH_SUFFIXES bin Scripts) ENDIF() # Find header file (only for version < 5) diff --git a/cmake/FindSalomeVTK.cmake b/cmake/FindSalomeVTK.cmake index 6fd1445..32f7214 100644 --- a/cmake/FindSalomeVTK.cmake +++ b/cmake/FindSalomeVTK.cmake @@ -37,6 +37,7 @@ SET(SalomeVTK_COMPONENTS InteractionWidgets InfovisCore InteractionStyle + CommonSystem ) # Seting the following variable is equivalent to having passed the components