How to properly set CMAKE_INSTALL_PREFIX from the command-line December 15, 2022 by Tarik That should be (see the docs): cmake -DCMAKE_INSTALL_PREFIX=/usr ..