Add qtdir to the cmake commandline

Summary: The qtdir config option from .kdesrc-buildrc was seemingly innefective, which is fixed by this patch

Reviewers: mpyne

Differential Revision: https://phabricator.kde.org/D11736
wilder
Luiz Romário Santana Rios 8 years ago
parent c9a364c33b
commit 51f20932df
  1. 6
      modules/ksb/BuildSystem/KDE4.pm

@ -172,6 +172,12 @@ sub _safe_run_cmake
push @commands, "-DCMAKE_INSTALL_PREFIX=$prefix";
# Add custom Qt to the prefix
my $qtdir = $module->getOption('qtdir');
if ($qtdir && $qtdir ne $prefix) {
push @commands, "-DCMAKE_PREFIX_PATH=$qtdir";
}
if ($module->getOption('run-tests') &&
!grep { /^\s*-DKDE4_BUILD_TESTS(:BOOL)?=(ON|TRUE|1)\s*$/ } (@commands)
)

Loading…
Cancel
Save