]> SALOME platform Git repositories - tools/documentation.git/commitdiff
Salome HOME
bos #24228 [CEA 24217][Windows] cannot compile SMESH and DOCUMENTATION V9_7_BR vsr/24228 V9_7_0 V9_7_0rc1 V9_7_0rc2
authorvsr <vsr@opencascade.com>
Tue, 4 May 2021 07:45:20 +0000 (10:45 +0300)
committervsr <vsr@opencascade.com>
Tue, 4 May 2021 07:45:20 +0000 (10:45 +0300)
dev/CMakeLists.txt
examples/CMakeLists.txt
gui/CMakeLists.txt
tui/CMakeLists.txt

index 35dd2a7bcc1558ec70038d2f8aa6ef0589c77f05..0c6c5b92885e3d298ec45ed0bc169aa107e220fc 100644 (file)
@@ -32,9 +32,10 @@ SET(_modules
 )
 
 FOREACH(_module ${_modules})
-  SET(${_module}_ROOT_DIR $ENV{${_module}_ROOT_DIR})
-  IF(${_module}_ROOT_DIR)
-    SALOME_INSTALL_MODULE_DOC(${${_module}_ROOT_DIR}/share/doc/salome/dev/${_module}
+  SET(_root_dir $ENV{${_module}_ROOT_DIR})
+  IF(_root_dir)
+    FILE(TO_CMAKE_PATH "${_root_dir}/share/doc/salome/dev/${_module}" _doc_path)
+    SALOME_INSTALL_MODULE_DOC("${_doc_path}"
                               DESTINATION ${SALOME_INSTALL_DOC_DEV})
   ENDIF()
 ENDFOREACH()
@@ -44,11 +45,12 @@ ENDFOREACH()
 
 SET(MEDCOUPLING_ROOT_DIR $ENV{MEDCOUPLING_ROOT_DIR})
 IF(MEDCOUPLING_ROOT_DIR)
-  SALOME_INSTALL_MODULE_DOC(${MEDCOUPLING_ROOT_DIR}/share/doc/developer
+  FILE(TO_CMAKE_PATH "${MEDCOUPLING_ROOT_DIR}" _root_dir)
+  SALOME_INSTALL_MODULE_DOC("${_root_dir}/share/doc/developer"
                             DESTINATION ${SALOME_INSTALL_DOC_DEV}/MEDCoupling)
-  SALOME_INSTALL_MODULE_DOC(${MEDCOUPLING_ROOT_DIR}/share/doc/tutorial
+  SALOME_INSTALL_MODULE_DOC("${_root_dir}/share/doc/tutorial"
                             DESTINATION ${SALOME_INSTALL_DOC_DEV}/MEDCoupling)
-  SALOME_INSTALL_MODULE_DOC(${MEDCOUPLING_ROOT_DIR}/share/doc/user
+  SALOME_INSTALL_MODULE_DOC("${_root_dir}/share/doc/user"
                             DESTINATION ${SALOME_INSTALL_DOC_DEV}/MEDCoupling
                             INDEX html)
 ENDIF()
index 038fa140fa07bdb6abc0b67858b01b6616a8898a..df170780ba1f448411cce7c8dd0ad4f992be39b9 100644 (file)
@@ -32,9 +32,10 @@ SET(_modules
 )
 
 FOREACH(_module ${_modules})
-  SET(${_module}_ROOT_DIR $ENV{${_module}_ROOT_DIR})
-  IF(${_module}_ROOT_DIR)
-    SALOME_INSTALL_MODULE_DOC(${${_module}_ROOT_DIR}/share/doc/salome/examples/${_module}
+  SET(_root_dir $ENV{${_module}_ROOT_DIR})
+  IF(_root_dir)
+    FILE(TO_CMAKE_PATH "${_root_dir}/share/doc/salome/examples/${_module}" _doc_path)
+    SALOME_INSTALL_MODULE_DOC("${_doc_path}"
                               DESTINATION ${SALOME_INSTALL_DOC_EXAMPLES})
   ENDIF()
 ENDFOREACH()
index 57b25d9628caa5c1876cfe7146c584dd76b995fc..76f35a1c12e997edca649f353674b516c194a85b 100644 (file)
@@ -41,9 +41,10 @@ SET(_modules
 )
 
 FOREACH(_module ${_modules})
-  SET(${_module}_ROOT_DIR $ENV{${_module}_ROOT_DIR})
-  IF(${_module}_ROOT_DIR)
-    SALOME_INSTALL_MODULE_DOC(${${_module}_ROOT_DIR}/share/doc/salome/gui/${_module}
+  SET(_root_dir $ENV{${_module}_ROOT_DIR})
+  IF(_root_dir)
+    FILE(TO_CMAKE_PATH "${_root_dir}/share/doc/salome/gui/${_module}" _doc_path)
+    SALOME_INSTALL_MODULE_DOC("${_doc_path}"
                               DESTINATION ${SALOME_INSTALL_DOC_GUI})
   ENDIF()
 ENDFOREACH()
@@ -53,7 +54,8 @@ ENDFOREACH()
 
 SET(HOMARD_ROOT_DIR $ENV{HOMARD_ROOT_DIR})
 IF(HOMARD_ROOT_DIR)
-  SALOME_INSTALL_MODULE_DOC(${HOMARD_ROOT_DIR}/share/doc/salome/gui/HOMARD
+  FILE(TO_CMAKE_PATH "${HOMARD_ROOT_DIR}/share/doc/salome/gui/HOMARD" _doc_path)
+  SALOME_INSTALL_MODULE_DOC("${_doc_path}"
                             DESTINATION ${SALOME_INSTALL_DOC_GUI}
                             INDEX en fr)
 ENDIF()
@@ -63,7 +65,8 @@ ENDIF()
 
 SET(ADAO_ROOT_DIR $ENV{ADAO_ROOT_DIR})
 IF(ADAO_ROOT_DIR)
-  SALOME_INSTALL_MODULE_DOC(${ADAO_ROOT_DIR}/share/doc/gui/ADAO
+  FILE(TO_CMAKE_PATH "${ADAO_ROOT_DIR}/share/doc/gui/ADAO" _doc_path)
+  SALOME_INSTALL_MODULE_DOC("${_doc_path}"
                             DESTINATION ${SALOME_INSTALL_DOC_GUI}
                             INDEX en fr)
 ENDIF()
index 810a525f66c81d851dcbc208f92081c8b241d685..6a85b0fface690d519fb98d7ba3bfa11c7f0928e 100644 (file)
@@ -31,9 +31,10 @@ SET(_modules
 )
 
 FOREACH(_module ${_modules})
-  SET(${_module}_ROOT_DIR $ENV{${_module}_ROOT_DIR})
-  IF(${_module}_ROOT_DIR)
-    SALOME_INSTALL_MODULE_DOC(${${_module}_ROOT_DIR}/share/doc/salome/tui/${_module}
+  SET(_root_dir $ENV{${_module}_ROOT_DIR})
+  IF(_root_dir)
+    FILE(TO_CMAKE_PATH "${_root_dir}/share/doc/salome/tui/${_module}" _doc_path)
+    SALOME_INSTALL_MODULE_DOC("${_doc_path}"
                               DESTINATION ${SALOME_INSTALL_DOC_TUI})
   ENDIF()
 ENDFOREACH()