From 2dcd7b28026b9ff2bac6eb0bf25a8d18612b9665 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 12 Apr 2021 21:45:55 +0300 Subject: [PATCH] Build under Windows with ParaView-5.9.0 and sip-5.5.0 --- cmake/FindSIP.cmake | 10 +++++++--- cmake/FindSalomeVTK.cmake | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.2