Re: [CMake] How do I get ExternalProject_Add to install libs/programs with sudo access

2019-06-23 Thread Gonzalo Garramuño
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= -DCMAKE_CXX_FLAGS='-g' Thanks, Ruben.  I am familiar with this.  I was hoping to

Re: [CMake] How do I get ExternalProject_Add to install libs/programs with sudo access

2019-06-23 Thread Ruben Di Battista
If I’m not mistaken, you should be able to change the install prefix using the CMAKE_ARGS option in the Configure step. This is my ExternalProject_Add I use to download third party stuff. Things enclosed by @ are replaced at configure time by correct names/URLs.  ``` ExternalProject_Add(    

[CMake] How do I get ExternalProject_Add to install libs/programs with sudo access

2019-06-23 Thread Gonzalo Garramuño
I am in the process of adding ExternalProject_Add commands to my program and I find them to work okay, except when they get to the install step.  Once they reach the install, they fail as they don't have super user access to install in /usr/local/, which is where I want them. How do you work