MARK_AS_ADVANCED(PYQT_SIP_MAIN_FILE)
# Get PyQt compilation flags:
-SET(PYQT_PYTHONPATH "${_tmp_ROOT_DIR}/PyQt5;${_tmp_ROOT_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/PyQt5")
+SET(PYQT_PYTHONPATH "${_tmp_ROOT_DIR};${_tmp_ROOT_DIR}/PyQt5;${_tmp_ROOT_DIR}/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/PyQt5")
SET(PYQT_SIPFLAGS)
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys;
IF(LIBXML2_FOUND)
SALOME_ACCUMULATE_HEADERS(LIBXML2_INCLUDE_DIR)
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${LIBXML2_LIBRARIES})
+ IF(WIN32 AND LIBXML2_XMLLINT_EXECUTABLE)
+ GET_FILENAME_COMPONENT(LIBXML2_BIN_DIR ${LIBXML2_XMLLINT_EXECUTABLE} DIRECTORY)
+ SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${LIBXML2_BIN_DIR})
+ ENDIF()
ENDIF()
SALOME_ACCUMULATE_HEADERS(OpenCASCADE_INCLUDE_DIR)
SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OpenCASCADE_LIBRARY_DIR})
+ IF(WIN32)
+ # RNV: Fix bug with OCCT CMake build procedure:
+ # In Debug ${OpenCASCADE_BINARY_DIR} and ${OpenCASCADE_LIBRARY_DIR} are stored in the
+ # config file w/o "d" suffix. To be checked with latest version of OCCT.
+ SET(SUFF "")
+ IF(${OpenCASCADE_BUILD_TYPE} STREQUAL "Debug")
+ SET(SUFF "d")
+ ENDIF()
+ SALOME_ACCUMULATE_ENVIRONMENT(LD_LIBRARY_PATH ${OpenCASCADE_BINARY_DIR}${SUFF})
+ ENDIF()
ELSE()
# TODO: Detect OpenCASCADE if it is distributed without CMake configuration.
SET(_env "${_env}:${_ctx}\n" )
ENDIF()
- IF(NOT ${_env} STREQUAL "")
+ IF(NOT "${_env}" STREQUAL "")
SET(_script ${_script}.${_ext})
FILE(WRITE ${_script} "${_env}")
SET(${output} ${_call_cmd} ${_script} && ${cmd} ${opts})
IF(${_item} STREQUAL "LD_LIBRARY_PATH")
SET(_item PATH)
ENDIF()
- STRING(REPLACE "/" "\\" ${env} "${env}@SET ${_item}=${_val};%${_item}%\n")
+ STRING(REPLACE "/" "\\" ${env} "${${env}}@SET ${_item}=${_val};%${_item}%\n")
ELSEIF(APPLE)
IF(${_item} STREQUAL "LD_LIBRARY_PATH")
SET(${env} "${${env}} export DYLD_LIBRARY_PATH=${_val}:\${DYLD_LIBRARY_PATH}\n")
ENDIF()
SET(_script "${_script_wo}.${_ext}")
- SALOME_GENERATE_ENVIRONMENT_SCRIPT(_not_used_output ${_script_wo} "" ""
- \ CONTEXT ${MULTI_LANG_TARGET_NAME} CONTEXT_NAME "DO_GENERATION" ADDITIONAL_VARIABLES ${MULTI_LANG_ADDITIONAL_ENVIRONMENT})
+ SALOME_GENERATE_ENVIRONMENT_SCRIPT(_not_used_output ${_script_wo} "" "" CONTEXT "${MULTI_LANG_TARGET_NAME}" CONTEXT_NAME "DO_GENERATION" ADDITIONAL_VARIABLES ${MULTI_LANG_ADDITIONAL_ENVIRONMENT})
FILE(APPEND ${_script} "${CMDS}")