[CMake] Problems with ExternalProject_Add

Steven Truppe workbench at gmx.at
Wed May 22 05:08:36 EDT 2019


Hi everyone,


i'm trying to use ExternalProject_Add like the following:

set(BOOST_VERSION 1.68.0)
set(BOOST_VERSION_NODOTS 1_68_0)
set(BOOST_URI https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_NODOTS}.tar.gz)
set(BOOST_HASH 5d8b4503582fffa9eefdb9045359c239)

ExternalProject_Add(external_boost
         PREFIX ${CMAKE_BINARY_DIR}/boost
		URL ${BOOST_URL}
         DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/boost
		URL_HASH MD5=${BOOST_HASH}
         CONFIGURE_COMMAND  cd ${CMAKE_BINARY_DIR}/boost/src/external_boost/ && ./bootstrab --prefix=${OUTPUT_PATH}/boost
		BUILD_COMMAND  cd ${CMAKE_BINARY_DIR}/boost/src/external_boost/ && ./b2
		BUILD_IN_SOURCE 1
		INSTALL_DIR ${OUTPUT_PATH}/boost

The problem is that he tells me that the md5 sum isn't correct, but i did md5sum ${BOOST_URL}.


I now play around with this for nearnly an hour and i allways get the same error.

I hope someone here can help me out.

best regards,
Steven Truppe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190522/acb0a475/attachment.html>


More information about the CMake mailing list