Skip to content

Commit

Permalink
common: unset CMAKE_GENERATOR before sourcing templates
Browse files Browse the repository at this point in the history
When building dependencies of packages this has to be unset to avoid
using e.g. CMAKE_GENERATOR="Unix Makefiles" for a package which expected
to build with the default of make_cmd=ninja, and would subsequently fail
with "ninja: error: loading 'build.ninja': No such file or directory"
during do_build() if do_configure() generated a Makefile instead of a
build.ninja file.
  • Loading branch information
JamiKettunen committed Jun 4, 2022
1 parent b94aa9a commit 6d25aff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/environment/setup/sourcepkg.sh
Expand Up @@ -8,6 +8,7 @@ unset -v configure_script configure_args wrksrc build_wrksrc create_wrksrc
unset -v make_build_args make_check_args make_install_args
unset -v make_build_target make_check_target make_install_target
unset -v make_cmd meson_cmd gem_cmd fetch_cmd make_check_pre
unset -v CMAKE_GENERATOR
unset -v python_version stackage
unset -v cmake_builddir meson_builddir
unset -v meson_crossfile
Expand Down

0 comments on commit 6d25aff

Please sign in to comment.