[CMake] How do I get ExternalProject_Add to install libs/programs with sudo access
Gonzalo Garramuño
ggarra13 at gmail.com
Sun Jun 23 21:44:16 EDT 2019
El 23/6/19 a las 19:21, Ruben Di Battista escribió:
> If I’m not mistaken, you should be able to change the install prefix
> using the CMAKE_ARGS option in the Configure step.
> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_CXX_FLAGS='-g'
Thanks, Ruben. I am familiar with this. I was hoping to have a way of
installing in /usr/local, by having cmake/ninja call a sudo ninja
install and then leaving the terminal to type in the password.
But I guess this is not possible, and I'll have to install somewhere else.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190623/ba7c39e0/attachment.html>
More information about the CMake
mailing list