<html><head><style>body{font-family:Merriweather,Arial;font-size:13px}</style></head><body><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">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. </div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); "><br></div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">```</div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); "><div style="margin: 0px;">ExternalProject_Add(</div><div style="margin: 0px;"> @TP_PACKAGE_NAME@</div><div style="margin: 0px;"> GIT_REPOSITORY @TP_PACKAGE_GIT_REPOSITORY@</div><div style="margin: 0px;"> GIT_TAG "master"</div><div style="margin: 0px;"> GIT_PROGRESS TRUE </div><div style="margin: 0px;"> UPDATE_COMMAND ${GIT_EXECUTABLE} pull</div><div style="margin: 0px;"> LOG_DOWNLOAD ON</div><div style="margin: 0px;"> LOG_CONFIGURE ON</div><div style="margin: 0px;"> LOG_BUILD ON</div><div style="margin: 0px;"> INSTALL_DIR "@TP_PACKAGE_INSTALL_DIR@"</div><div style="margin: 0px;"> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DCMAKE_CXX_FLAGS='-g'</div><div style="margin: 0px;">)</div></div><div style="font-family:Merriweather,Arial;font-size:13px; color: rgba(51,51,51,1.0); ">```</div> <br> <div class="gmail_signature">
<title></title>
<pre> _
-. .´ |∞∞∞∞
', ; |∞∞∞∞∞∞
˜˜ |∞∞∞∞∞∞∞∞∞ RdB
,., |∞∞∞∞∞∞
.' '. |∞∞∞∞
-' `’
https://rdb.is
</pre>
</div> <br><p class="airmail_on">On 23 June 2019 at 23:08:43, Gonzalo Garramuño (<a href="mailto:ggarra13@gmail.com">ggarra13@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>I am in the process of adding ExternalProject_Add commands to my program
<br>and I find them to work okay, except when they get to the install step.
<br>Once they reach the install, they fail as they don't have super user
<br>access to install in /usr/local/, which is where I want them.
<br>
<br>How do you work around this with ExternalProject_Add?
<br>
<br>--
<br>
<br>Powered by www.kitware.com
<br>
<br>Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
<br>
<br>Kitware offers various services to support the CMake community. For more information on each offering, please visit:
<br>
<br>CMake Support: http://cmake.org/cmake/help/support.html
<br>CMake Consulting: http://cmake.org/cmake/help/consulting.html
<br>CMake Training Courses: http://cmake.org/cmake/help/training.html
<br>
<br>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
<br>
<br>Follow this link to subscribe/unsubscribe:
<br>https://cmake.org/mailman/listinfo/cmake
<br></div></div></span></blockquote></body></html>