Skip to content
Snippets Groups Projects
Verified Commit f0f62619 authored by Lars Bilke's avatar Lars Bilke
Browse files

More (lib) version requirements.

parent 51968412
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@ endif()
include(${PROJECT_SOURCE_DIR}/scripts/cmake/conan/conan.cmake)
set(CONAN_REQUIRES
boost/1.66.0@conan/stable
eigen/3.3.4@conan/stable
vtk/8.2.0@bilke/stable
boost/${ogs.minimum_version.boost}@conan/stable
eigen/${ogs.minimum_version.eigen}@conan/stable
vtk/${ogs.tested_version.vtk}@bilke/stable
CACHE INTERNAL ""
)
......@@ -74,9 +74,9 @@ if(OGS_BUILD_GUI)
zlib/1.2.11
)
if(UNIX)
set(CONAN_REQUIRES ${CONAN_REQUIRES} qt/5.14.1@bincrafters/stable)
set(CONAN_REQUIRES ${CONAN_REQUIRES} qt/${ogs.tested_version.qt.linux}@bincrafters/stable)
else()
set(CONAN_REQUIRES ${CONAN_REQUIRES} qt/5.13.2@bincrafters/stable)
set(CONAN_REQUIRES ${CONAN_REQUIRES} qt/${ogs.tested_version.qt.win}@bincrafters/stable)
endif()
set(CONAN_OPTIONS ${CONAN_OPTIONS}
vtk:minimal=False
......
......@@ -59,7 +59,7 @@ find_program(MODULE_CMD modulecmd
######################
### Find libraries ###
######################
find_package(Boost 1.62.0 REQUIRED)
find_package(Boost ${ogs.minimum_version.boost} REQUIRED)
set(VTK_COMPONENTS vtkIOXML)
if(OGS_BUILD_GUI)
......@@ -73,10 +73,10 @@ endif()
if(OGS_USE_MPI)
set(VTK_COMPONENTS ${VTK_COMPONENTS} vtkIOParallelXML vtkParallelMPI)
endif()
find_package(VTK 8.1.2 REQUIRED COMPONENTS ${VTK_COMPONENTS})
find_package(VTK ${ogs.minimum_version.vtk} REQUIRED COMPONENTS ${VTK_COMPONENTS})
include(${VTK_USE_FILE})
find_package(Eigen3 3.3.4 REQUIRED)
find_package(Eigen3 ${ogs.minimum_version.eigen} REQUIRED)
include_directories(SYSTEM ${EIGEN3_INCLUDE_DIR})
## pthread, is a requirement of logog ##
......@@ -108,7 +108,7 @@ if(OGS_BUILD_GUI)
if(OGS_USE_CONAN AND UNIX AND NOT APPLE)
set(QT_MODULES ${QT_MODULES} X11Extras)
endif()
find_package(Qt5 5.2 REQUIRED ${QT_MODULES})
find_package(Qt5 ${ogs.minimum_version.qt} REQUIRED ${QT_MODULES})
cmake_policy(SET CMP0020 NEW)
endif()
......@@ -155,7 +155,7 @@ if(OGS_USE_PETSC)
set(PETSC_EXECUTABLE_RUNS YES)
endif()
find_package(PETSc REQUIRED)
find_package(PETSc ${ogs.minimum_version.petsc} REQUIRED)
include_directories(SYSTEM ${PETSC_INCLUDES})
......
......@@ -19,13 +19,13 @@ We strongly recommend to simply use [Conan]({{< ref "conan.pandoc" >}}) for hand
The following libraries are required:
- [Boost](http://www.boost.org/) >= 1.56.0
- [Eigen](http://eigen.tuxfamily.org/) >= 3.2.9
- [VTK](https://www.vtk.org/) >= 7.1.0
- [Boost](http://www.boost.org/) >= {{< dataFile "versions.minimum_version.boost" >}}
- [Eigen](http://eigen.tuxfamily.org/) >= {{< dataFile "versions.minimum_version.eigen" >}}
- [VTK](https://www.vtk.org/) >= {{< dataFile "versions.minimum_version.vtk" >}}
If you want to build the Data Explorer you need these too:
- [Qt](https://www.qt.io/) >= 5.9.2
- [Qt](https://www.qt.io/) >= {{< dataFile "versions.minimum_version.qt" >}}
- [Shapelib](http://shapelib.maptools.org) >= 1.3.0
- [libgeotiff](https://trac.osgeo.org/geotiff/) >= 1.4.2
......
......@@ -15,7 +15,7 @@ The minimum prerequisites to build OGS are:
- An 64-bit operating system (Linux, Windows 7 and up, macOS)
- Git (version control tool, at least version {{< dataFile "versions.minimum_version.git" >}})
- CMake (build configuration tool, at least version 3.12)
- CMake (build configuration tool, at least version {{< dataFile "versions.minimum_version.cmake" >}})
- A compiler with [C++17](http://en.wikipedia.org/wiki/C%2B%2B17)-support
- [Conan package manager](https://www.conan.io/) (at least version {{< dataFile "versions.minimum_version.conan" >}}) **OR** install [required libraries]({{< ref "third-party-libraries.pandoc" >}}) manually (for advanced users only!)
......@@ -88,7 +88,7 @@ Please check if Git is already installed:
```bash
$ git --version
git version 1.7.4.1
git version {{< dataFile "versions.minimum_version.git" >}}
```
Otherwise please install Git with your favorite package manager:
......
......@@ -8,6 +8,19 @@
"toolset": "141"
},
"conan": "1.21.0",
"git": "2.14"
"git": "2.14",
"cmake": "3.12",
"boost": "1.66.0",
"eigen": "3.3.4",
"vtk": "8.1.2",
"petsc": "3.8.3",
"qt": "5.12.4"
},
"tested_version": {
"vtk": "8.2.0",
"qt": {
"linux": "5.14.1",
"win": "5.13.2"
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment