<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>I'm using ExternalProject to build external dependencies. curl provides a cmake build process, but I cannot figure out how to pass options such as:<div><div><br></div><div>--disable-manual --disable-shared --without-librtmp --without-libidn --without-winidn --without-winssl --disable-ldap --disable-ldaps --enable-ipv6 --enable-threaded-resolver --enable-cookies --enable-static</div><div><br></div><div>to the build process. The only way I've found to get it to work is to use a custom CONFIGURE_COMMAND and related steps. I would prefer to use the cmake build process.</div><div><br></div><div>This is what I have that works:</div><div><br></div><div><div>ExternalProject_Add(</div><div> CURL</div><div> DEPENDS OPENSSL ZLIB OPENSSH</div><div> SOURCE_DIR ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/</div><div> PREFIX ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/</div><div> DOWNLOAD_COMMAND tar xvjf ${PROJECT_BINARY_DIR}/deps/curl-7.43.0.tar.bz2</div><div> DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/deps/</div><div> CONFIGURE_COMMAND cd ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/ && ./configure --prefix=${PROJECT_BINARY_DIR}/deps/binary/linux/ --disable-manual --disable-shared --without-librtmp --without-libidn --without-winidn --without-winssl --disable-ldap --disable-ldaps --enable-ipv6 --enable-threaded-resolver --enable-cookies --enable-static</div><div> BUILD_COMMAND cd ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/ && make</div><div> INSTALL_COMMAND ""</div><div>)</div></div><div><br></div><div>I want to use this, so that cmake can do its thing while still giving me the specific variant of curl I want:</div><div><br></div><div><div>ExternalProject_Add(</div><div> CURL</div><div> DEPENDS OPENSSL ZLIB OPENSSH</div><div> SOURCE_DIR ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/</div><div> PREFIX ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/</div><div> DOWNLOAD_COMMAND tar xvjf ${PROJECT_BINARY_DIR}/deps/curl-7.43.0.tar.bz2</div><div> DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/deps/</div><div> CMAKE_ARGS</div><div> -DCMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR}/deps/binary/linux/</div><div> -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}</div><div> -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}</div><div> -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}</div><div> -DCMAKE_MOUDLE_PATH=${MAKE_MOUDLE_PATH}</div><div> INSTALL_COMMAND ""</div><div>)</div></div><div><br><div id=""><hr><font size="3">Vadtec</font><div><font size="2">vadtec@vadtec.net</font></div></div></div></div></div></body></html>