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:
--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
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.
This is what I have that works:
ExternalProject_Add(
CURL
DEPENDS OPENSSL ZLIB OPENSSH
SOURCE_DIR ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/
PREFIX ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/
DOWNLOAD_COMMAND tar xvjf ${PROJECT_BINARY_DIR}/deps/curl-7.43.0.tar.bz2
DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/deps/
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
BUILD_COMMAND cd ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/ && make
INSTALL_COMMAND ""
)
I want to use this, so that cmake can do its thing while still giving me the
specific variant of curl I want:
ExternalProject_Add(
CURL
DEPENDS OPENSSL ZLIB OPENSSH
SOURCE_DIR ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/
PREFIX ${PROJECT_BINARY_DIR}/deps/curl-7.43.0/
DOWNLOAD_COMMAND tar xvjf ${PROJECT_BINARY_DIR}/deps/curl-7.43.0.tar.bz2
DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/deps/
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR}/deps/binary/linux/
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_MOUDLE_PATH=${MAKE_MOUDLE_PATH}
INSTALL_COMMAND ""
)
[email protected]
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake