[CMake] ExternalProject_Add with custom build/make command for Boost

David Cole DLRdave at aol.com
Thu Sep 25 20:03:40 EDT 2014


INSTALL_COMMAND ""

should work. (Assuming you're doing "./b2 install" as the BUILD_COMMAND...?)

Check out how the open chemistry project builds boost as an
ExternalProject as a reference point:
https://github.com/OpenChemistry/openchemistry/blob/master/cmake/External_boost.cmake


HTH,
David C.


On Thu, Sep 25, 2014 at 5:40 PM, Nicholas Yue <yue.nicholas at gmail.com> wrote:
> Hi,
>
>   I am trying to build Boost (1.47.0) using CMake's ExternalProject_Add()
>
>   I got it to build and install via it's bjam "./b2 install"
>
>   However, there is an implicit "make install" generated by CMake which will
> fail because there is no Makefile so to speak with an install target.
>
>   ExternalProject_Add() has many configuration parameter and I am wondering
> if there is one which I can use to tell it not to attempt to "make install"
>
> Cheers
> --
> Nicholas Yue
> Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
> Custom Dev - C++ porting, OSX, Linux, Windows
> http://au.linkedin.com/in/nicholasyue
> https://vimeo.com/channels/naiadtools
>
> --
>
> 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


More information about the CMake mailing list