<div dir="ltr">I've using cmake to build an autoconf portion of the project using ExternalProject_Add.  I tried using the autoconf prefix, but was having issues with the libtool and absolute paths.  I found DCMAKE_INSTALL_PREFIX in the docs, which seems to avoid the libtool problem, but I'm getting errors saying I don't have permissions writing files to /usr/local/include.  Why would it be trying to write files there?  <div>

<br></div><div><div>Making install in api</div><div> /bin/mkdir -p '/usr/local/include'</div><div> /usr/bin/install -c -m 644 /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.h /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.f /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3l.f03 /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3q.f03 '/usr/local/include'</div>

<div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3.h’: Permission denied</div><div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3.f’: Permission denied</div><div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3l.f03’: Permission denied</div>

<div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3q.f03’: Permission denied</div><div>make[6]: *** [install-includeHEADERS] Error 1</div><div>make[5]: *** [install-am] Error 2</div><div>make[4]: *** [install] Error 2</div>

<div>make[3]: *** [install-recursive] Error 1</div><div>make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-install] Error 2</div><div>make[1]: *** [CMakeFiles/fftw.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div>
<br>
</div><div>*** And part of my cmake file...</div><div><br></div><div>SET(DEPLOY_DIR /tmp/foo)<br></div><div><br></div><div><div>ExternalProject_Add(</div><div>  fftw</div><div>  SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3</div>

<div>  CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}</div><div>  CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:</div><div>    PATH=$DEPLOY_DIR/FFTW</div><div>  BUILD_COMMAND make</div><div>)</div></div><div>

<br></div></div></div>