Skip to content

Commit

Permalink
Update build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed May 8, 2023
1 parent cc770a8 commit 1191b31
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -124,8 +124,8 @@ and CMake ≥ 3.4.

```sh
cmake .
make -j
sudo make install
cmake --build . --parallel
sudo cmake --install .
sudo ldconfig
```

Expand Down
17 changes: 8 additions & 9 deletions doc/BUILD.md
Expand Up @@ -33,8 +33,8 @@ Open a terminal, cd into the primesieve directory and run:

```bash
cmake .
make -j
sudo make install
cmake --build . --parallel
sudo cmake --install .
sudo ldconfig
```

Expand All @@ -44,8 +44,7 @@ Open a terminal, cd into the primesieve directory and run:

```bash
cmake -G "Unix Makefiles" .
make -j
sudo make install
cmake --build . --parallel
```

## Microsoft Visual C++
Expand All @@ -61,7 +60,7 @@ cmake -G "Visual Studio 17 2022" .
cmake --build . --config Release

# Optionally install using Admin shell
cmake --build . --config Release --target install
cmake --install . --config Release
```

## CMake configure options
Expand Down Expand Up @@ -89,7 +88,7 @@ Open a terminal, cd into the primesieve directory and run:

```bash
cmake -DBUILD_TESTS=ON .
make -j
cmake --build . --parallel
ctest
```

Expand All @@ -104,7 +103,7 @@ Open a terminal, cd into the primesieve directory and run:

```bash
cmake -DBUILD_EXAMPLES=ON .
make -j
cmake --build . --parallel
```

## API documentation
Expand All @@ -115,7 +114,7 @@ you need to have installed the ```doxygen```, ```doxygen-latex``` and

```bash
cmake -DBUILD_DOC=ON .
make doc
cmake --build . --target doc
```

## Man page regeneration
Expand All @@ -129,5 +128,5 @@ regenerate the man page.
```bash
# Build man page using a2x program (asciidoc package)
cmake -DBUILD_MANPAGE=ON .
make -j
cmake --build . --parallel
```
2 changes: 1 addition & 1 deletion examples/README.md
Expand Up @@ -11,5 +11,5 @@ Run the commands below from the root primesieve directory.

```sh
cmake -DBUILD_EXAMPLES=ON .
make -j
cmake --build . --parallel
```
2 changes: 1 addition & 1 deletion scripts/update_version.sh
Expand Up @@ -74,7 +74,7 @@ done
# Update version number in man page
echo ""
cmake .
make -j
cmake --build . --parallel
echo ""

echo "Version has been updated!"
6 changes: 3 additions & 3 deletions test/README.md
Expand Up @@ -4,7 +4,7 @@ Run the commands below from the primesieve root directory.

```bash
cmake . -DBUILD_TESTS=ON
make -j
cmake --build . --parallel
ctest
```

Expand All @@ -19,7 +19,7 @@ the screen. This helps to quickly identify newly introduced bugs.
```bash
# Run commands from primesieve root directory
cmake . -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-O1 -Wall -Wextra -pedantic" -DCMAKE_C_FLAGS="-O1 -Wall -Wextra -pedantic"
make -j
cmake --build . --parallel
ctest --output-on-failure
```

Expand All @@ -31,6 +31,6 @@ as this helps find undefined behavior bugs and data races.
```bash
# Run commands from primesieve root directory
cmake . -DBUILD_TESTS=ON -DCMAKE_CXX_FLAGS="-g -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer -Wall -Wextra -pedantic" -DCMAKE_C_FLAGS="-g -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer -Wall -Wextra -pedantic"
make -j
cmake --build . --parallel
ctest --output-on-failure
```

0 comments on commit 1191b31

Please sign in to comment.