mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
STYLE: remove patches and support for older paraview and adios
This commit is contained in:
26
BUILD.md
26
BUILD.md
@ -221,23 +221,8 @@ and save some disk space.
|
||||
- Compiles without patching.
|
||||
No known issues with the native OpenFOAM reader.
|
||||
|
||||
#### 5.3.0
|
||||
- Compiles without patching.
|
||||
The native OpenFOAM reader has a bug reading tetrahedrals.
|
||||
|
||||
#### 5.2.0
|
||||
- Compiles without patching, but the native OpenFOAM reader is
|
||||
broken in this version.
|
||||
|
||||
#### 4.4.0/5.0.0/5.0.1/5.1.2
|
||||
- When using `makeParaView`, the following patches will be automatically
|
||||
applied (see the `etc/patches` directory):
|
||||
- Bugfix for STL reader - affects 4.4.0 only.
|
||||
- Broken installation (ui_pqExportStateWizard.h) - affects 4.4.0/5.0.0/5.0.1/5.1.x
|
||||
- Building with gcc-6.1.0 - affects 4.4.0/5.0.0/5.0.1 (patch applied for 5.0.1)
|
||||
- The SciberQuestToolKit plugin fails to compile with gcc-6.1.0 and causes
|
||||
the compilation of ParaView to halt. The easiest solution is to delete
|
||||
the ParaView-5.0.1/Plugins/SciberQuestToolKit directory.
|
||||
#### 5.3.0 and older are neither recommended nor supported
|
||||
- Various compilation issues and known bugs.
|
||||
|
||||
### ADIOS
|
||||
- The github release currently requires GNU autoconf tools (eg,
|
||||
@ -260,7 +245,7 @@ and save some disk space.
|
||||
|
||||
3. Build ParaView using this third-party QT. For example,
|
||||
|
||||
./makeParaView -qt-4.8.7 5.0.1
|
||||
./makeParaView -qt-4.8.7 5.4.1
|
||||
|
||||
- ParaView versions prior to 5.3.0 do not properly support QT5.
|
||||
|
||||
@ -361,19 +346,14 @@ GNU *configure* can only be used prior to clang version 3.9.
|
||||
The minimum CMake requirements for building various components.
|
||||
|
||||
2.8 llvm-3.4.2
|
||||
2.8.8 ParaView-5.0.1
|
||||
2.8.11 CGAL-4.9
|
||||
2.8.11 CGAL-4.11
|
||||
2.8.12.2 llvm-3.7.0
|
||||
2.8.12.2 llvm-3.8.0
|
||||
2.8.4 cmake-3.6.0
|
||||
3.3 ParaView-5.1.2
|
||||
3.3 ParaView-5.2.0
|
||||
3.3 ParaView-5.3.0
|
||||
3.3 ParaView-5.4.1
|
||||
3.4.3 llvm-3.9.1
|
||||
3.4.3 llvm-4.0.0
|
||||
3.5 ParaView-5.1.0
|
||||
|
||||
|
||||
### GCC Minimum Requirements <a name="min-gcc"></a>
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
--- ADIOS-1.11.0/src/core/adios_transform_methods.c.orig 2016-11-17 19:46:11.000000000 +0100
|
||||
+++ ADIOS-1.11.0/src/core/adios_transform_methods.c 2016-12-14 15:19:39.870832445 +0100
|
||||
@@ -7,6 +7,9 @@
|
||||
|
||||
ADIOS_AVAILABLE_TRANSFORM_METHODS * adios_available_transform_methods()
|
||||
{
|
||||
+ /* Ensure the transforms are initialized before accessing */
|
||||
+ adios_transform_read_init();
|
||||
+
|
||||
int i, n;
|
||||
n = 0;
|
||||
for (i = (int)adios_transform_none; i < num_adios_transform_types; i++) {
|
||||
@ -1 +0,0 @@
|
||||
ADIOS-1.11.0
|
||||
@ -1,27 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# simple script to generate patches
|
||||
paraview=ParaView-5.0.1
|
||||
if [ "$#" -gt 0 ]
|
||||
then
|
||||
paraview="${1%%/}"
|
||||
fi
|
||||
|
||||
[ -d "$paraview" ] || {
|
||||
echo "No directory '$paraview'" 1>&2
|
||||
exit 2
|
||||
}
|
||||
|
||||
for i in \
|
||||
$paraview/VTK/CMake/vtkCompilerExtras.cmake \
|
||||
$paraview/VTK/CMake/GenerateExportHeader.cmake \
|
||||
$paraview/Qt/Components/CMakeLists.txt \
|
||||
$paraview/CMake/generate_qhp.cmake \
|
||||
$paraview/CMake/ParaViewMacros.cmake \
|
||||
$paraview/CMake/generate_proxydocumentation.cmake \
|
||||
;
|
||||
do
|
||||
diff -uw $i.orig $i
|
||||
done
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@ -1,44 +0,0 @@
|
||||
--- ParaView-4.4.0/VTK/IO/Geometry/vtkSTLReader.cxx.orig 2015-09-11 19:59:24.000000000 +0200
|
||||
+++ ParaView-4.4.0/VTK/IO/Geometry/vtkSTLReader.cxx 2016-06-19 12:59:50.769770143 +0200
|
||||
@@ -448,7 +448,7 @@
|
||||
done = done || (fscanf(fp,"%s", line)==EOF);
|
||||
}
|
||||
}
|
||||
- if (!done)
|
||||
+ else if (!done)
|
||||
{
|
||||
done = (fgets(line, 255, fp) == 0);
|
||||
lineCount++;
|
||||
--- ParaView-5.0.1/VTK/CMake/vtkCompilerExtras.cmake.orig 2016-03-28 17:07:10.000000000 +0200
|
||||
+++ ParaView-5.0.1/VTK/CMake/vtkCompilerExtras.cmake 2016-06-11 15:10:14.820958942 +0200
|
||||
@@ -32,7 +32,7 @@
|
||||
OUTPUT_VARIABLE _gcc_version_info
|
||||
ERROR_VARIABLE _gcc_version_info)
|
||||
|
||||
- string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]*"
|
||||
+ string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
|
||||
_gcc_version "${_gcc_version_info}")
|
||||
if(NOT _gcc_version)
|
||||
string (REGEX REPLACE ".*\\(GCC\\).*([34]\\.[0-9]).*" "\\1.0"
|
||||
--- ParaView-5.0.1/VTK/CMake/GenerateExportHeader.cmake.orig 2016-03-28 17:07:10.000000000 +0200
|
||||
+++ ParaView-5.0.1/VTK/CMake/GenerateExportHeader.cmake 2016-06-11 15:12:16.344357746 +0200
|
||||
@@ -166,7 +166,7 @@
|
||||
execute_process(COMMAND ${CMAKE_C_COMPILER} ARGS --version
|
||||
OUTPUT_VARIABLE _gcc_version_info
|
||||
ERROR_VARIABLE _gcc_version_info)
|
||||
- string(REGEX MATCH "[345]\\.[0-9]\\.[0-9]*"
|
||||
+ string(REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
|
||||
_gcc_version "${_gcc_version_info}")
|
||||
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
|
||||
# patch level, handle this here:
|
||||
--- ParaView-5.0.1/Qt/Components/CMakeLists.txt.orig 2016-06-13 09:27:27.827849525 +0200
|
||||
+++ ParaView-5.0.1/Qt/Components/CMakeLists.txt 2016-06-13 09:29:28.599318445 +0200
|
||||
@@ -640,7 +640,7 @@
|
||||
#the pqSGExportStateWizard has subclasses that directly access
|
||||
#the UI file, and currently we don't have a clean way to break this hard
|
||||
#dependency, so for no we install this ui file.
|
||||
-if(PARAVIEW_INSTALL_DEVELOPMENT_FILES)
|
||||
+if(PARAVIEW_INSTALL_DEVELOPMENT_FILES AND PARAVIEW_ENABLE_PYTHON)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ui_pqExportStateWizard.h"
|
||||
DESTINATION "${VTK_INSTALL_INCLUDE_DIR}")
|
||||
endif()
|
||||
@ -1 +0,0 @@
|
||||
paraview-5.0.1
|
||||
@ -1,221 +0,0 @@
|
||||
--- ParaView-5.0.1/VTK/CMake/vtkCompilerExtras.cmake.orig 2016-03-28 17:07:10.000000000 +0200
|
||||
+++ ParaView-5.0.1/VTK/CMake/vtkCompilerExtras.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -32,7 +32,7 @@
|
||||
OUTPUT_VARIABLE _gcc_version_info
|
||||
ERROR_VARIABLE _gcc_version_info)
|
||||
|
||||
- string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]*"
|
||||
+ string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
|
||||
_gcc_version "${_gcc_version_info}")
|
||||
if(NOT _gcc_version)
|
||||
string (REGEX REPLACE ".*\\(GCC\\).*([34]\\.[0-9]).*" "\\1.0"
|
||||
--- ParaView-5.0.1/VTK/CMake/GenerateExportHeader.cmake.orig 2016-03-28 17:07:10.000000000 +0200
|
||||
+++ ParaView-5.0.1/VTK/CMake/GenerateExportHeader.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -166,7 +166,7 @@
|
||||
execute_process(COMMAND ${CMAKE_C_COMPILER} ARGS --version
|
||||
OUTPUT_VARIABLE _gcc_version_info
|
||||
ERROR_VARIABLE _gcc_version_info)
|
||||
- string(REGEX MATCH "[345]\\.[0-9]\\.[0-9]*"
|
||||
+ string(REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
|
||||
_gcc_version "${_gcc_version_info}")
|
||||
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
|
||||
# patch level, handle this here:
|
||||
--- ParaView-5.0.1/Qt/Components/CMakeLists.txt.orig 2016-03-28 17:07:03.000000000 +0200
|
||||
+++ ParaView-5.0.1/Qt/Components/CMakeLists.txt 2016-12-13 17:38:42.713553032 +0100
|
||||
@@ -656,7 +656,7 @@
|
||||
#the pqSGExportStateWizard has subclasses that directly access
|
||||
#the UI file, and currently we don't have a clean way to break this hard
|
||||
#dependency, so for no we install this ui file.
|
||||
-if(PARAVIEW_INSTALL_DEVELOPMENT_FILES)
|
||||
+if(PARAVIEW_INSTALL_DEVELOPMENT_FILES AND PARAVIEW_ENABLE_PYTHON)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ui_pqExportStateWizard.h"
|
||||
DESTINATION "${VTK_INSTALL_INCLUDE_DIR}")
|
||||
endif()
|
||||
--- ParaView-5.0.1/CMake/generate_qhp.cmake.orig 2016-03-28 17:06:22.000000000 +0200
|
||||
+++ ParaView-5.0.1/CMake/generate_qhp.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -44,7 +48,9 @@
|
||||
message(FATAL_ERROR "Missing one of the required arguments!!")
|
||||
endif ()
|
||||
|
||||
-string (REPLACE "+" ";" file_patterns "${file_patterns}")
|
||||
+# Recover original ';' separated list.
|
||||
+string(REPLACE "_s" ";" file_patterns "${file_patterns}")
|
||||
+string(REPLACE "_u" "_" file_patterns "${file_patterns}")
|
||||
|
||||
get_filename_component(working_dir "${output_file}" PATH)
|
||||
|
||||
--- ParaView-5.0.1/CMake/ParaViewMacros.cmake.orig 2016-03-28 17:07:03.000000000 +0200
|
||||
+++ ParaView-5.0.1/CMake/ParaViewMacros.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -219,15 +226,21 @@
|
||||
set (xmls_string "")
|
||||
foreach (xml ${xmls})
|
||||
get_filename_component(xml "${xml}" ABSOLUTE)
|
||||
- set (xmls_string "${xmls_string}${xml}+")
|
||||
+ set (xmls_string "${xmls_string}${xml};")
|
||||
endforeach()
|
||||
|
||||
set (gui_xmls_string "")
|
||||
foreach (gui_xml ${gui_xmls})
|
||||
get_filename_component(gui_xml "${gui_xml}" ABSOLUTE)
|
||||
- set (gui_xmls_string "${gui_xmls_string}${gui_xml}+")
|
||||
+ set (gui_xmls_string "${gui_xmls_string}${gui_xml};")
|
||||
endforeach()
|
||||
|
||||
+ # Escape ';' in lists
|
||||
+ string(REPLACE "_" "_u" xmls_string "${xmls_string}")
|
||||
+ string(REPLACE ";" "_s" xmls_string "${xmls_string}")
|
||||
+ string(REPLACE "_" "_u" gui_xmls_string "${gui_xmls_string}")
|
||||
+ string(REPLACE ";" "_s" gui_xmls_string "${gui_xmls_string}")
|
||||
+
|
||||
set (all_xmls ${xmls} ${gui_xmls})
|
||||
list (GET all_xmls 0 first_xml)
|
||||
if (NOT first_xml)
|
||||
--- ParaView-5.0.1/CMake/generate_proxydocumentation.cmake.orig 2016-03-28 17:06:22.000000000 +0200
|
||||
+++ ParaView-5.0.1/CMake/generate_proxydocumentation.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -21,8 +21,10 @@
|
||||
endif()
|
||||
|
||||
# input_xmls is a pseudo-list. Convert it to a real CMake list.
|
||||
-string(REPLACE "+" ";" input_xmls "${input_xmls}")
|
||||
-string(REPLACE "+" ";" input_gui_xmls "${input_gui_xmls}")
|
||||
+string(REPLACE "_s" ";" input_xmls "${input_xmls}")
|
||||
+string(REPLACE "_u" "_" input_xmls "${input_xmls}")
|
||||
+string(REPLACE "_s" ";" input_gui_xmls "${input_gui_xmls}")
|
||||
+string(REPLACE "_u" "_" input_gui_xmls "${input_gui_xmls}")
|
||||
|
||||
set (xslt_xml)
|
||||
|
||||
--- ParaView-5.0.1/VTK/CMake/vtkOpenGL.cmake.orig 2016-03-28 17:07:10.000000000 +0200
|
||||
+++ ParaView-5.0.1/VTK/CMake/vtkOpenGL.cmake 2017-01-19 10:23:19.170743269 +0100
|
||||
@@ -19,9 +19,11 @@
|
||||
# OSMesa logic for offscreen mesa rendering.
|
||||
option(VTK_OPENGL_HAS_OSMESA
|
||||
"The OpenGL library being used supports off screen Mesa calls" OFF)
|
||||
+
|
||||
# EGL offscreen rendering
|
||||
option(VTK_USE_OFFSCREEN_EGL
|
||||
"Use EGL for OpenGL client API for offscreen rendering." OFF)
|
||||
+
|
||||
set(VTK_EGL_DEVICE_INDEX 0 CACHE STRING
|
||||
"Index of the EGL device (graphics card) to use.")
|
||||
|
||||
@@ -33,21 +35,26 @@
|
||||
endif()
|
||||
|
||||
option(VTK_USE_OFFSCREEN "Use off screen calls by default" OFF)
|
||||
+
|
||||
unset(VTK_CAN_DO_OFFSCREEN)
|
||||
+unset(VTK_CAN_DO_ONSCREEN)
|
||||
+
|
||||
if(VTK_OPENGL_HAS_OSMESA OR WIN32 OR VTK_USE_OFFSCREEN_EGL)
|
||||
set(VTK_CAN_DO_OFFSCREEN 1)
|
||||
endif()
|
||||
+
|
||||
if(VTK_USE_X OR VTK_USE_COCOA OR WIN32 OR ANDROID OR APPLE_IOS)
|
||||
- set(VTK_USE_OSMESA FALSE)
|
||||
+ set(VTK_USE_OSMESA ${VTK_OPENGL_HAS_OSMESA})
|
||||
if (VTK_USE_OFFSCREEN_EGL)
|
||||
message(FATAL_ERROR "VTK_USE_OFFSCREEN_EGL set together with one of ("
|
||||
"VTK_USE_X, VTK_USE_COCOA, WIN32, ANDROID OR APPLE_IOS). "
|
||||
"You cannot use both offscreen and one of the listed windowing systems.")
|
||||
endif()
|
||||
+ set(VTK_CAN_DO_ONSCREEN 1)
|
||||
elseif(VTK_USE_OFFSCREEN_EGL)
|
||||
set(VTK_USE_OSMESA FALSE)
|
||||
else()
|
||||
- set(VTK_USE_OSMESA TRUE)
|
||||
+ set(VTK_USE_OSMESA ${VTK_OPENGL_HAS_OSMESA})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(VTK_USE_X VTK_OPENGL_HAS_OSMESA VTK_USE_OFFSCREEN_EGL
|
||||
@@ -56,10 +63,17 @@
|
||||
if(VTK_USE_OSMESA)
|
||||
find_package(OSMesa REQUIRED)
|
||||
include_directories(SYSTEM ${OSMESA_INCLUDE_DIR})
|
||||
-elseif(VTK_USE_OFFSCREEN_EGL)
|
||||
+endif()
|
||||
+
|
||||
+if(VTK_USE_OFFSCREEN_EGL)
|
||||
find_package(EGL REQUIRED)
|
||||
include_directories(SYSTEM ${EGL_INCLUDE_DIR})
|
||||
-else()
|
||||
+endif()
|
||||
+
|
||||
+if(VTK_CAN_DO_ONSCREEN)
|
||||
+ # OpenGL libraries are explicity needed if windowing system-based API is being
|
||||
+ # used. Otherwise, if only doing OFFSCREEN, the GL API is provided by the
|
||||
+ # offscreen library be it EGL or OSMESA.
|
||||
find_package(OpenGL REQUIRED)
|
||||
include_directories(SYSTEM ${OPENGL_INCLUDE_DIR})
|
||||
if(APPLE)
|
||||
@@ -83,9 +97,11 @@
|
||||
function(vtk_opengl_link target)
|
||||
if(VTK_USE_OSMESA)
|
||||
vtk_module_link_libraries(${target} LINK_PRIVATE ${OSMESA_LIBRARY})
|
||||
- elseif(VTK_USE_OFFSCREEN_EGL)
|
||||
+ endif()
|
||||
+ if(VTK_USE_OFFSCREEN_EGL)
|
||||
vtk_module_link_libraries(${target} LINK_PRIVATE ${EGL_LIBRARIES})
|
||||
- else()
|
||||
+ endif()
|
||||
+ if(VTK_CAN_DO_ONSCREEN)
|
||||
vtk_module_link_libraries(${target} LINK_PRIVATE ${OPENGL_LIBRARIES})
|
||||
endif()
|
||||
endfunction()
|
||||
--- ParaView-5.0.1/VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx.orig 2016-03-28 17:07:10.000000000 +0200
|
||||
+++ ParaView-5.0.1/VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx 2017-01-19 15:24:21.783214877 +0100
|
||||
@@ -30,10 +30,25 @@
|
||||
typedef ptrdiff_t GLsizeiptr;
|
||||
#include "GL/glx.h"
|
||||
|
||||
+
|
||||
+#ifndef GLAPI
|
||||
+#define GLAPI extern
|
||||
+#endif
|
||||
+
|
||||
+#ifndef GLAPIENTRY
|
||||
+#define GLAPIENTRY
|
||||
+#endif
|
||||
+
|
||||
+#ifndef APIENTRY
|
||||
+#define APIENTRY GLAPIENTRY
|
||||
+#endif
|
||||
+
|
||||
#include "vtkToolkits.h"
|
||||
|
||||
#ifdef VTK_USE_OSMESA
|
||||
#include <GL/osmesa.h>
|
||||
+
|
||||
+typedef OSMesaContext GLAPIENTRY (*OSMesaCreateContextAttribs_func)( const int *attribList, OSMesaContext sharelist );
|
||||
#endif
|
||||
|
||||
#include "vtkCommand.h"
|
||||
@@ -757,6 +772,28 @@
|
||||
this->Size[1] = height;
|
||||
this->OwnWindow = 1;
|
||||
}
|
||||
+
|
||||
+#if (OSMESA_MAJOR_VERSION * 100 + OSMESA_MINOR_VERSION >= 1102) && defined(OSMESA_CONTEXT_MAJOR_VERSION)
|
||||
+ static const int attribs[] = {
|
||||
+ OSMESA_FORMAT, OSMESA_RGBA,
|
||||
+ OSMESA_DEPTH_BITS, 32,
|
||||
+ OSMESA_STENCIL_BITS, 0,
|
||||
+ OSMESA_ACCUM_BITS, 0,
|
||||
+ OSMESA_PROFILE, OSMESA_CORE_PROFILE,
|
||||
+ OSMESA_CONTEXT_MAJOR_VERSION, 3,
|
||||
+ OSMESA_CONTEXT_MINOR_VERSION, 2,
|
||||
+ 0 };
|
||||
+
|
||||
+ OSMesaCreateContextAttribs_func OSMesaCreateContextAttribs =
|
||||
+ (OSMesaCreateContextAttribs_func)
|
||||
+ OSMesaGetProcAddress("OSMesaCreateContextAttribs");
|
||||
+
|
||||
+ if (OSMesaCreateContextAttribs != NULL)
|
||||
+ {
|
||||
+ this->Internal->OffScreenContextId = OSMesaCreateContextAttribs(attribs, NULL);
|
||||
+ }
|
||||
+#endif
|
||||
+ // if we still have no context fall back to the generic signature
|
||||
if (!this->Internal->OffScreenContextId)
|
||||
{
|
||||
this->Internal->OffScreenContextId = OSMesaCreateContext(GL_RGBA, NULL);
|
||||
@ -1 +0,0 @@
|
||||
paraview-5.1.2
|
||||
@ -1,65 +0,0 @@
|
||||
--- ParaView-5.1.2/Qt/Components/CMakeLists.txt.orig 2016-07-26 21:52:16.000000000 +0200
|
||||
+++ ParaView-5.1.2/Qt/Components/CMakeLists.txt 2016-12-13 17:38:42.713553032 +0100
|
||||
@@ -591,7 +591,7 @@
|
||||
#the pqSGExportStateWizard has subclasses that directly access
|
||||
#the UI file, and currently we don't have a clean way to break this hard
|
||||
#dependency, so for no we install this ui file.
|
||||
-if(PARAVIEW_INSTALL_DEVELOPMENT_FILES)
|
||||
+if(PARAVIEW_INSTALL_DEVELOPMENT_FILES AND PARAVIEW_ENABLE_PYTHON)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ui_pqExportStateWizard.h"
|
||||
DESTINATION "${VTK_INSTALL_INCLUDE_DIR}")
|
||||
endif()
|
||||
--- ParaView-5.1.2/CMake/generate_qhp.cmake.orig 2016-03-28 17:06:22.000000000 +0200
|
||||
+++ ParaView-5.1.2/CMake/generate_qhp.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -44,7 +48,9 @@
|
||||
message(FATAL_ERROR "Missing one of the required arguments!!")
|
||||
endif ()
|
||||
|
||||
-string (REPLACE "+" ";" file_patterns "${file_patterns}")
|
||||
+# Recover original ';' separated list.
|
||||
+string(REPLACE "_s" ";" file_patterns "${file_patterns}")
|
||||
+string(REPLACE "_u" "_" file_patterns "${file_patterns}")
|
||||
|
||||
get_filename_component(working_dir "${output_file}" PATH)
|
||||
|
||||
--- ParaView-5.1.2/CMake/ParaViewMacros.cmake.orig 2016-03-28 17:07:03.000000000 +0200
|
||||
+++ ParaView-5.1.2/CMake/ParaViewMacros.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -219,15 +226,21 @@
|
||||
set (xmls_string "")
|
||||
foreach (xml ${xmls})
|
||||
get_filename_component(xml "${xml}" ABSOLUTE)
|
||||
- set (xmls_string "${xmls_string}${xml}+")
|
||||
+ set (xmls_string "${xmls_string}${xml};")
|
||||
endforeach()
|
||||
|
||||
set (gui_xmls_string "")
|
||||
foreach (gui_xml ${gui_xmls})
|
||||
get_filename_component(gui_xml "${gui_xml}" ABSOLUTE)
|
||||
- set (gui_xmls_string "${gui_xmls_string}${gui_xml}+")
|
||||
+ set (gui_xmls_string "${gui_xmls_string}${gui_xml};")
|
||||
endforeach()
|
||||
|
||||
+ # Escape ';' in lists
|
||||
+ string(REPLACE "_" "_u" xmls_string "${xmls_string}")
|
||||
+ string(REPLACE ";" "_s" xmls_string "${xmls_string}")
|
||||
+ string(REPLACE "_" "_u" gui_xmls_string "${gui_xmls_string}")
|
||||
+ string(REPLACE ";" "_s" gui_xmls_string "${gui_xmls_string}")
|
||||
+
|
||||
set (all_xmls ${xmls} ${gui_xmls})
|
||||
list (GET all_xmls 0 first_xml)
|
||||
if (NOT first_xml)
|
||||
--- ParaView-5.1.2/CMake/generate_proxydocumentation.cmake.orig 2016-03-28 17:06:22.000000000 +0200
|
||||
+++ ParaView-5.1.2/CMake/generate_proxydocumentation.cmake 2016-12-13 17:21:25.382720945 +0100
|
||||
@@ -21,8 +21,10 @@
|
||||
endif()
|
||||
|
||||
# input_xmls is a pseudo-list. Convert it to a real CMake list.
|
||||
-string(REPLACE "+" ";" input_xmls "${input_xmls}")
|
||||
-string(REPLACE "+" ";" input_gui_xmls "${input_gui_xmls}")
|
||||
+string(REPLACE "_s" ";" input_xmls "${input_xmls}")
|
||||
+string(REPLACE "_u" "_" input_xmls "${input_xmls}")
|
||||
+string(REPLACE "_s" ";" input_gui_xmls "${input_gui_xmls}")
|
||||
+string(REPLACE "_u" "_" input_gui_xmls "${input_gui_xmls}")
|
||||
|
||||
set (xslt_xml)
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# makeParaView
|
||||
#
|
||||
# Description
|
||||
# Make and install ParaView 4 or 5.
|
||||
# Make and install ParaView.
|
||||
# The ParaView sources should be located under one of these locations:
|
||||
# - $WM_THIRD_PARTY_DIR/ParaView-VERSION
|
||||
# - $WM_THIRD_PARTY_DIR/ParaView-vVERSION
|
||||
@ -103,7 +103,7 @@ For finer control, the build stages can be selected or deselected individually:
|
||||
To make a different paraview version, simply specify on the command-line.
|
||||
For example,
|
||||
|
||||
./makeParaview 5.0.1
|
||||
./makeParaview 5.4.1
|
||||
|
||||
Or change the \$WM_PROJECT_DIR/etc/config.sh/paraview settings.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user