If we will be using CMake to build the module, but it has a unsermake build system already

in place, force a clean rebuild.

svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=526257
wilder
Michael Pyne 20 years ago
parent c4770a6262
commit 56cfab4329
  1. 11
      kdesvn-build

@ -4035,12 +4035,21 @@ sub setup_build_system
# by using && instead of and.
my $do_makeconf = (get_option ($module, 'recreate-configure') and not $uses_cmake);
if (needs_refreshed($module))
# As a special case to the normal instances where we will rebuild a module,
# also force a rebuild if we're using CMake but the current build directory
# is unsermake-based. libtool is only used by autotools/unsermake.
if (needs_refreshed($module) or
($uses_cmake and -e "$builddir/libtool"))
{
# The build system needs created, either because it doesn't exist, or
# because the user has asked that it be completely rebuilt.
info "\tPreparing build system for y[$module].";
if ($uses_cmake and -e "$builddir/libtool")
{
info "\t\ty[Rebuild forced] due to switch of build system to CMake.";
}
# Define this option to tell later functions that we tried to rebuild
# this module.
set_option($module, '#was-rebuilt', 1);

Loading…
Cancel
Save