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

[web] Added msvc version info and check.

parent 29c8ee7e
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,12 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL) ...@@ -118,6 +118,12 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL)
endif() endif()
if(MSVC) if(MSVC)
if(${MSVC_TOOLSET_VERSION} LESS ${ogs.minimum_version.msvc.toolset})
message(FATAL_ERROR "Aborting: Visual Studio ${ogs.minimum_version.msvc.year} \
is required! Found Visual Studio with toolset version \
${MSVC_TOOLSET_VERSION}. See the following link for version info: \
https://cmake.org/cmake/help/v3.16/variable/MSVC_TOOLSET_VERSION.html")
endif()
if(OGS_CPU_ARCHITECTURE STREQUAL "native") if(OGS_CPU_ARCHITECTURE STREQUAL "native")
set(CPU_FLAGS /favor:blend) set(CPU_FLAGS /favor:blend)
else() else()
......
...@@ -22,9 +22,9 @@ The minimum prerequisites to build OGS are: ...@@ -22,9 +22,9 @@ The minimum prerequisites to build OGS are:
## Step: Install a compiler ## Step: Install a compiler
::: {.win} ::: {.win}
As we use lots of features of the C++17-standard we support **Visual Studio 2015** and up. Therefore you will need at least **Windows 7** (64-bit recommended). It is perfectly fine to use the free Community Edition of Visual Studio. As we use lots of features of the C++17-standard we support **Visual Studio {{< dataFile "versions.minimum_version.msvc.year" >}}** and up. Therefore you will need at least **Windows 7** (64-bit recommended). It is perfectly fine to use the free Community Edition of Visual Studio.
- Download and install [Visual Studio Community 2017](https://www.visualstudio.com/de/thank-you-downloading-visual-studio/?sku=Community&rel=15) - Download and install [Visual Studio Community](https://www.visualstudio.com)
- Select the *workload* `Desktop Development with C++` - Select the *workload* `Desktop Development with C++`
- You can uncheck everything else - You can uncheck everything else
- When installation finished please start Visual Studio once (when asked for credentials enter your Microsoft account or click on **Skip for now**) - When installation finished please start Visual Studio once (when asked for credentials enter your Microsoft account or click on **Skip for now**)
......
{ {
"minimum_version": { "minimum_version": {
"gcc": "7.3", "gcc": "7.3",
"clang": "3.5" "clang": "3.5",
"msvc": {
"year": "2017",
"number": "15",
"toolset": "141"
}
} }
} }
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