Skip to content

Commit 7625f72

Browse files
Merge pull request #980 from PowerGridModel/feature/update-build-guide
meet-up hackaton: update build guide
2 parents ec38e6e + 56eeaed commit 7625f72

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include("cmake/pgm_version.cmake")
1111

1212
project (power_grid_model VERSION ${PGM_VERSION})
1313

14-
option(PGM_ENABLE_TESTS "Enable tests" OFF)
14+
option(PGM_ENABLE_DEV_BUILD "Enable developer build (e.g.: tests)" OFF)
1515

1616
set(CMAKE_CXX_STANDARD 20)
1717
set(CMAKE_CXX_STANDARD_REQUIRED ON)

docs/advanced_documentation/build-guide.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ You can use any IDE to develop this project. As a popular cross-platform IDE, th
175175

176176
```{note}
177177
VSCode (as well as some other IDEs) does not set its own build environment itself. For optimal usage, open the folder
178-
using `cmake <project_dir>` from a terminal that has the environment set up. See above section for tips.
178+
using `code <project_dir>` from a terminal that has the environment set up. See above section for tips.
179179
```
180180

181181
## Build Script for Linux/macOS
@@ -194,9 +194,9 @@ Usage: ./build.sh -p <preset> [-c] [-e] [-i] [-t]
194194
195195
To list the available presets, run `./build.sh -h`.
196196
197-
## Example Setup for Ubuntu 22.04 (in WSL or physical/virtual machine)
197+
## Example Setup for Ubuntu 24.04 (in WSL or physical/virtual machine)
198198
199-
In this section an example is given for setup in Ubuntu 22.04. You can use this example in Windows Subsystem for Linux (
199+
In this section an example is given for setup in Ubuntu 24.04. You can use this example in Windows Subsystem for Linux (
200200
WSL), or in a physical/virtual machine.
201201
202202
### Environment variables
@@ -286,7 +286,7 @@ or install using
286286
cmake --build --preset <preset> --target install
287287
```
288288
289-
## Example Setup for Windows 10
289+
## Example Setup for Windows 11
290290
291291
Define the following environment variable user-wide:
292292
@@ -374,9 +374,9 @@ The IDE should be able to automatically detect the Visual Studio cmake configura
374374
Prompt`).
375375
```
376376
377-
## Example Setup for macOS (Big Sur)
377+
## Example Setup for macOS (Sequoia)
378378
379-
In this section an example is given for setup in macOS Big Sur and Python 3.11.
379+
In this section an example is given for setup in macOS Sequoia and Python 3.11.
380380
381381
### Environment variables
382382
@@ -427,7 +427,7 @@ As an example, go to the root folder of repo. Use the following command to build
427427
./build.sh -p <preset>
428428
```
429429
430-
To list the available presets, run `./build.sh -h`.
430+
To list the available presets, run `cmake --list-presets`.
431431
432432
One can run the unit tests and C API example by:
433433

0 commit comments

Comments
 (0)