]> SALOME platform Git repositories - tools/configuration.git/commitdiff
Salome HOME
Additional changes for documentation environment on Windows.
authorrnv <rnv@opencascade.com>
Tue, 27 Aug 2019 15:31:40 +0000 (18:31 +0300)
committerrnv <rnv@opencascade.com>
Tue, 27 Aug 2019 15:31:40 +0000 (18:31 +0300)
cmake/FindPyQt5.cmake
cmake/FindSalomeLibXml2.cmake
cmake/FindSalomeOpenCASCADE.cmake
cmake/SalomeMacros.cmake
cmake/UseSphinx.cmake

index 4b1ad34f6568a206019dd0225286b2cdc7ac3394..f893e0fce24ccfa506dc2f6ca26eee8d40430f76 100644 (file)
@@ -65,7 +65,7 @@ ENDIF()
 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; 
index e4d58b2f5ce851dd7ef189d4f74deaed7014d509..1303c06a2901ffb16926b1997db369361a6633c4 100644 (file)
@@ -31,4 +31,8 @@ ENDIF()
 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()
index 257b896e10e06da611d0f9759f04735315ce535b..8dea8dfa929dc29444e27c1c41246cd46df1cc76 100644 (file)
@@ -43,6 +43,16 @@ IF(OpenCASCADE_FOUND)
 
   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.
index 1044836e8c3856271e929f03f9f7abd2b3f827aa..80a37936f9ff594b4c334347ab75f8e273705f72 100644 (file)
@@ -876,7 +876,7 @@ MACRO(SALOME_GENERATE_ENVIRONMENT_SCRIPT output script cmd opts)
      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})
@@ -1116,7 +1116,7 @@ MACRO(SALOME_DO_VAR_SUBSTITUTION env variable value)
     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")
index 7916b19cefc28c9290fb85c6683691dedf1b44ca..2b46a15aa58e6e12b82df2d6b47208819998b77b 100644 (file)
@@ -100,8 +100,7 @@ MACRO(ADD_MULTI_LANG_DOCUMENTATION)
   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}")