3 ms·
I agree that Autotools is fine, but the CMake equivalent of your snippet is not that far with CMake: cmake --CMAKE_INSTALL_PREFIX=/usr/local -Bbuild -S.
by palata 4y ago
I agree that Autotools is fine, but the CMake equivalent of your snippet is not that far with CMake:
cmake --CMAKE_INSTALL_PREFIX=/usr/local -Bbuild -S.
cmake --build build --target install --parallel $(nproc)
- xeeeeeeeeeeenu 4y agoYou also need "-DCMAKE_BUILD_TYPE=Release" (or some other value). Otherwise, it will use a toolchain-specific default, which often means "no optimizations and no debug symbols".