diff --git a/modules/boost/boost.cmake b/modules/boost/boost.cmake index e3e9c74..6b82fa1 100644 --- a/modules/boost/boost.cmake +++ b/modules/boost/boost.cmake @@ -5,11 +5,14 @@ # Autocmake update time. # Note that the build-up commands are not Windows-compatible! # -# Your autocmake.cfg should look like this:: +# Your autocmake.cfg should contain:: # -# [boost] -# override: {'major': 1, 'minor': 59, 'patch': 0, 'components': 'chrono;timer;system'} -# source: https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost.cmake +# - boost: +# - major: 1 +# - minor: 59 +# - patch: 0 +# - components: "chrono;timer;system" +# - source: "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost.cmake" # # Cross-dependencies between required components are not checked for. # For example, Boost.Timer depends on Boost.Chrono and Boost.System thus you @@ -43,28 +46,31 @@ # MPI_FOUND # BUILD_CUSTOM_BOOST # -# autocmake.cfg configuration:: +# autocmake.yml configuration:: # -# major=1 -# minor=48 -# patch=0 -# components='' -# fetch: https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_unpack.cmake -# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_userconfig.cmake -# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_configure.cmake -# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_build.cmake -# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_install.cmake -# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_headers.cmake -# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_cleanup.cmake -# http://sourceforge.net/projects/boost/files/boost/%(major)s.%(minor)s.%(patch)s/boost_%(major)s_%(minor)s_%(patch)s.zip -# docopt: --boost-headers= Include directories for Boost [default: '']. -# --boost-libraries= Library directories for Boost [default: '']. -# --build-boost= Deactivate Boost detection and build on-the-fly [default: OFF]. -# define: '-DBOOST_INCLUDEDIR="{0}"'.format(arguments['--boost-headers']) -# '-DBOOST_LIBRARYDIR="{0}"'.format(arguments['--boost-libraries']) -# '-DFORCE_CUSTOM_BOOST="{0}"'.format(arguments['--build-boost']) -# '-DBOOST_MINIMUM_REQUIRED="%(major)s.%(minor)s.%(patch)s"' -# '-DBOOST_COMPONENTS_REQUIRED="%(components)s"' +# major: 1 +# minor: 48 +# patch: 0 +# components: "" +# fetch: +# - "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_unpack.cmake" +# - "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_userconfig.cmake" +# - "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_configure.cmake" +# - "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_build.cmake" +# - "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_install.cmake" +# - "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_headers.cmake" +# - "https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_cleanup.cmake" +# - "http://sourceforge.net/projects/boost/files/boost/%(major)s.%(minor)s.%(patch)s/boost_%(major)s_%(minor)s_%(patch)s.zip" +# docopt: +# - "--boost-headers= Include directories for Boost [default: '']." +# - "--boost-libraries= Library directories for Boost [default: '']." +# - "--build-boost= Deactivate Boost detection and build on-the-fly [default: OFF]." +# define: +# - "'-DBOOST_INCLUDEDIR=\"{0}\"'.format(arguments['--boost-headers'])" +# - "'-DBOOST_LIBRARYDIR=\"{0}\"'.format(arguments['--boost-libraries'])" +# - "'-DFORCE_CUSTOM_BOOST=\"{0}\"'.format(arguments['--build-boost'])" +# - "'-DBOOST_MINIMUM_REQUIRED="%(major)s.%(minor)s.%(patch)s"'" +# - "'-DBOOST_COMPONENTS_REQUIRED="%(components)s"'" # FIXME Maintainer should be able to choose between fail (end-user has to satisfy dependency # on its own) and soft-fail (self-build of Boost)