Changes

Jump to navigation Jump to search
→‎Arch: added detail about the proper use of sudo if required.
popd
</syntaxhighlight>
 
Note too, that you may need to use <code>sudo</code> to install. If that's the case, you can replace this:
<syntaxhighlight lang="bash">
cmake -B build && cmake --build build -t install
</syntaxhighlight>
with this:
<syntaxhighlight lang="bash">
cmake -B build
cmake --build build
sudo cmake --build build -t install
</syntaxhighlight>
 
It's recommended to build an ordinary user and only use <code>sudo</code> for installing, as shown above. To speed up compiling on multicore machines, you can append <code>-j</code> to build commands as in <code>cmake --build build -j</code>.

Navigation menu