diff --git a/README.md b/README.md index f8da1d8f8..e69550c2b 100644 --- a/README.md +++ b/README.md @@ -124,8 +124,8 @@ and CMake ≥ 3.4. ```sh cmake . -make -j -sudo make install +cmake --build . --parallel +sudo cmake --install . sudo ldconfig ``` diff --git a/doc/BUILD.md b/doc/BUILD.md index 5b649eeb4..0b58064aa 100644 --- a/doc/BUILD.md +++ b/doc/BUILD.md @@ -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 ``` @@ -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++ @@ -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 @@ -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 ``` @@ -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 @@ -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 @@ -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 ``` diff --git a/examples/README.md b/examples/README.md index d489ce4fc..6ad43b8a2 100644 --- a/examples/README.md +++ b/examples/README.md @@ -11,5 +11,5 @@ Run the commands below from the root primesieve directory. ```sh cmake -DBUILD_EXAMPLES=ON . -make -j +cmake --build . --parallel ``` diff --git a/scripts/update_version.sh b/scripts/update_version.sh index bc83d0746..1d029db13 100755 --- a/scripts/update_version.sh +++ b/scripts/update_version.sh @@ -74,7 +74,7 @@ done # Update version number in man page echo "" cmake . -make -j +cmake --build . --parallel echo "" echo "Version has been updated!" diff --git a/test/README.md b/test/README.md index a071c70ff..6cbb79e43 100644 --- a/test/README.md +++ b/test/README.md @@ -4,7 +4,7 @@ Run the commands below from the primesieve root directory. ```bash cmake . -DBUILD_TESTS=ON -make -j +cmake --build . --parallel ctest ``` @@ -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 ``` @@ -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 ```