[Buildroot] [PATCH 1/1] Force cmake packages to use makefiles
Yann E. MORIN
yann.morin.1998 at free.fr
Sun Oct 30 16:45:45 UTC 2022
Woody, All,
On 2022-10-07 16:27 +0000, Woody Douglass via buildroot spake thusly:
>
> Force cmake packages to use the "Unix Makefiles" generator
> in case CMAKE_GENERATOR is set in the host environment. This
> patch further isolates the buildroot build environment from
> the host.
>
> Signed-off-by: Woodrow Douglass <wdouglass at carnegierobotics.com>
> ---
> package/pkg-cmake.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk
> index 081960b5bf..db9fdebb8d 100644
> --- a/package/pkg-cmake.mk
> +++ b/package/pkg-cmake.mk
> @@ -88,6 +88,7 @@ define $(2)_CONFIGURE_CMDS
> rm -f CMakeCache.txt && \
> PATH=$$(BR_PATH) \
> $$($$(PKG)_CONF_ENV) $$(BR2_CMAKE) $$($$(PKG)_SRCDIR) \
> + -G"Unix MakeFiles" \
> -DCMAKE_TOOLCHAIN_FILE="$$(HOST_DIR)/share/buildroot/to
> olchainfile.cmake" \
Your patch was damaged, so I had to manaully fix it when applying.
Normally, sending patches with "git send-email" takes care of properly
formatting patches.
Applied to master, thanks.
Regards,
Yann E. MORIN.
> -DCMAKE_INSTALL_PREFIX="/usr" \
> -DCMAKE_INSTALL_RUNSTATEDIR="/run" \
> @@ -118,6 +119,7 @@ define $(2)_CONFIGURE_CMDS
> PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
> $$($$(PKG)_CONF_ENV) $$(BR2_CMAKE) $$($$(PKG)_SRCDIR) \
> + -G"Unix MakeFiles" \
> -DCMAKE_INSTALL_SO_NO_EXE=0 \
> -DCMAKE_FIND_ROOT_PATH="$$(HOST_DIR)" \
> -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" \
> --
> 2.20.1
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list