[Buildroot] [PATCH v7 1/3] pkg-cmake: allow to build package in a subdirectory
thomas.petazzoni at free-electrons.com
Fri Mar 13 21:49:28 UTC 2015
Dear Gwenhael Goavec-Merou,
On Fri, 13 Mar 2015 09:24:08 +0100, Gwenhael Goavec-Merou wrote:
> diff --git a/docs/manual/adding-packages-cmake.txt b/docs/manual/adding-packages-cmake.txt
> index d92b209..87c51a8 100644
> --- a/docs/manual/adding-packages-cmake.txt
> +++ b/docs/manual/adding-packages-cmake.txt
> @@ -100,6 +100,10 @@ typical packages will therefore only use a few of them.
> necessary to set them in the package's +*.mk+ file unless you want
> to override them:
> +* +LIBFOO_SUPPORTS_IN_SOURCE_BUILD = NO+ should be set when the package
> + cannot be built inside the source tree but needs a separate build
> + directory.
Did you generate the documentation to review what you did? This chunk
was added right in the middle of the documentation of <pkg>_CONF_OPTS.
> ** +CMAKE_BUILD_TYPE+ is driven by +BR2_ENABLE_DEBUG+;
> ** +CMAKE_INSTALL_PREFIX+;
> ** +BUILD_SHARED_LIBS+ is driven by +BR2_STATIC_LIBS+;
I.e, this part must be right after <pkg>_CONF_OPTS.
I've fixed that and applied, thanks!
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
More information about the buildroot