[CMake] Issue with ExternalProject_add at make_directory build
David Cole
david.cole at kitware.com
Fri Jan 20 22:31:37 EST 2012
On Friday, January 20, 2012, Chris Sigman <cypris87 at gmail.com> wrote:
> Hi all,
> I'm trying to build boost with ExternalProject_add using cmake 2.8.7, and
there seems to be an error in the makefile it's generating. Specifically,
in the step where it created the directories, the makefile ends up with
this line:
> /apps/cmake/cmake-2.8.7/bin/cmake -E make_directory
/workspace/boost/build CONFIGURE_CMD "bootstrap.sh
--libdir=/workspace/boost/install --includedir=/workspace/boost/install
--with-libraries=serialization" BUILD_CMD "bjam install"
>
> It seems to me that that is supposed to be two or more separate calls.
This obviously ends up calling cmake in error. Below is my call to
ExternalProject_add, in-case that is what is in erorr, but I've fooled
around with it a fair amount and get the same results every time, so I
don't think that's where the issue is
> ExternalProject_Add ( boost
> PREFIX ${CMAKE_SOURCE_DIR}/boost/tmp
> DOWNLOAD_COMMAND ""
> SOURCE_DIR ${CMAKE_SOURCE_DIR}/boost/1_48_0
> INSTALL_DIR ${CMAKE_SOURCE_DIR}/boost/install
> BINARY_DIR ${CMAKE_SOURCE_DIR}/boost/build
> CONFIGURE_CMD "bootstrap.sh --libdir=<INSTALL_DIR>
--includedir=<INSTALL_DIR> --with-libraries=serialization"
> BUILD_CMD "bjam install"
> )
> Thanks for the help!
>
Check your args... Should be CONFIGURE_COMMAND and BUILD_COMMAND.
HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120120/f696235a/attachment.htm>
More information about the CMake
mailing list