Resolves one item in #1235. Closes #1294.
cc @hebasto
Resolves one item in #1235. Closes #1294.
78 | @@ -79,9 +79,9 @@ To maintain a pristine source tree, CMake encourages to perform an out-of-source
79 |
80 | $ mkdir build && cd build
81 | $ cmake ..
nit: Might be explicit:
$ cmake -S ..
?
Hm, yeah, I think shorter is better, and omitting the -S is also more common. (See the official tutorial https://cmake.org/cmake/help/latest/guide/tutorial/A%20Basic%20Starting%20Point.html for example.)
OK, nm.
78 | @@ -79,9 +79,9 @@ To maintain a pristine source tree, CMake encourages to perform an out-of-source 79 | 80 | $ mkdir build && cd build 81 | $ cmake .. 82 | - $ make 83 | - $ make check # run the test suite 84 | - $ sudo make install # optional 85 | + $ cmake --build . 86 | + $ ctest # run the test suite 87 | + $ sudo cmake --build . --target install # optional
Is it worth mentioning a modern and more effective alternative, which is available for CMake >= 3.15:
$ sudo cmake --install . # optional
?
Thanks for the suggestion. In fact, I had this first, but I changed to the current form because we still support CMake 3.13.
I mean, mention it additionally, not instead of the current line.
However, it's OK in its current view.
ACK 3777e3f36a61a05da19d5c6575fdd59288848948
ACK 3777e3f36a61a05da19d5c6575fdd59288848948