<div dir="ltr"><table class="gmail-iN" style="border-spacing:0px;font-size:16.8px;table-layout:fixed;width:1168px;vertical-align:top;border-collapse:collapse;border:none"><tbody><tr><td id="gmail-:qu" class="gmail-GQ" style="width:1168px;padding:0px"><div id="gmail-:qr" class="gmail-GP" style="margin:0px;overflow-y:hidden;padding:0px 1px;max-height:442px;min-height:442px;height:442px"><div id="gmail-:qs" class="gmail-qz gmail-aXjCH" style="overflow:hidden auto;min-width:448px;max-height:442px"><div id="gmail-:qq" class="et"><div id="gmail-:pf" class="gmail-ZyRVue"><div></div></div></div></div></div></td></tr></tbody></table>Hello<br><div><div>First off, much thanks to all the contributors of cmake. A truly invaluable build utility. Your efforts<br>are greatly appreciated.<br><br>I<font size="4">'ve been successfully using cmake to build an external project (the client library for redis, hiredis) </font></div><div><font size="4">that has already been downloaded. I was able to do this with BUILD_IN_SOURCE set to true, like so:</font><br><br><font face="courier new, monospace">ExternalProject_Add(hiredis  </font></div><div><font face="courier new, monospace">PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/hiredis<br>SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hiredis<br>BUILD_IN_SOURCE 1<br>CONFIGURE_COMMAND echo configure<br>BUILD_COMMAND make static<br>INSTALL_COMMAND echo install)</font><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;border-spacing:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""><tbody style="box-sizing:border-box"></tbody></table><br><br><font size="4">However, now i'd like to automatically download the source from github. So, I switch to </font></div><div><font size="4">the following:</font></div><div><br></div><div><font face="courier new, monospace">set(HIREDIS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hiredis)<br>set(HIREDIS_INCLUDE_DIRS ${HIREDIS_DIR}/include)<br>ExternalProject_Add(hiredis<br> URL <a href="https://github.com/redis/hiredis/archive/v0.9.0.tar.gz">https://github.com/redis/hiredis/archive/v0.9.0.tar.gz</a><br> PREFIX ${CMAKE_CURRENT_BINARY_DIR}/hiredis<br> SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/hiredis<br> DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/hiredis<br> BUILD_IN_SOURCE 1<br> CONFIGURE_COMMAND ""<br> BUILD_COMMAND make static<br> INSTALL_COMMAND "")</font><br><br><font size="4"><b>And I get the following error:</b></font></div><div><span style="font-size:0.875rem"><br></span></div><div>[  3%] Creating directories for 'hiredis'<br>[  6%] Performing download step (download, verify and extract) for 'hiredis'<br>-- Downloading...<br>  dst='/home/david/projects/clipseekr/hiredis/v0.9.0.tar.gz'<br>  timeout='none'<br>-- Using src='<a href="https://github.com/redis/hiredis/archive/v0.9.0.tar.gz">https://github.com/redis/hiredis/archive/v0.9.0.tar.gz</a>'<br>-- Downloading... done<br>-- extracting...<br>   src='/home/david/projects/clipseekr/hiredis/v0.9.0.tar.gz'<br>   dst='/home/david/projects/clipseekr/hiredis'<br>-- extracting... [tar xfz]<br>-- extracting... [analysis]<br>-- extracting... [rename]<br>-- extracting... [clean up]<br>-- extracting... done<br>make[2]: *** [CMakeFiles/hiredis.dir/build.make:93: hiredis/src/hiredis-stamp/hiredis-download] Error 1<br>make[1]: *** [CMakeFiles/Makefile2:147: CMakeFiles/hiredis.dir/all] Error 2<br>make: *** [Makefile:163: all] Error 2<br></div><div><span style="font-size:0.875rem"><br>It seems cmake is trying to invoke its internal cmake make files, rather than just run the "make static"</span></div><div><span style="font-size:0.875rem">build command. How do I just run the the "make static" command directly? </span></div><div><span style="font-size:0.875rem"><br></span></div><div><span style="font-size:0.875rem">Once again, thanks.</span></div><div><span style="font-size:0.875rem">starkdg<br></span><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;border-spacing:0px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC5" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;overflow:visible;white-space:pre"> </td></tr></tbody></table><span style="font-size:0.875rem">  </span></div></div></div>