@@ -127,3 +127,21 @@ Intel C++ Compiler should be used with `NMake Makefiles`, MinGW C++ should be us
...
@@ -127,3 +127,21 @@ Intel C++ Compiler should be used with `NMake Makefiles`, MinGW C++ should be us
```
```
cmake -B . -S ../exple-cmake-build -G"Visual Studio 17 2022"
cmake -B . -S ../exple-cmake-build -G"Visual Studio 17 2022"
```
```
### Choosing a compiler and setting compiler options
To choose a compiler use *CMAKE_CXX_COMPILER* variable when configuring cmake build. For setting options to be passed to compiler during build use *CMAKE_CXX_FLAGS* variable.
If you have *icc* on path, i.e.
```
icc --version
```
returns the version number then you can select it as a compiler for building this project with