diff options
author | Michael Widenius <monty@askmonty.org> | 2012-09-22 15:30:24 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2012-09-22 15:30:24 +0300 |
commit | 3e83c4e8f90851040be921443b52144a2862444a (patch) | |
tree | f76ee35018c73f2034e0e6e42c89c038f920f495 /cmake | |
parent | 513923868545338c00390f35f63b92efd55f50bb (diff) | |
parent | 79feec77ed4a7121e68be1dc16f79dcad6c5d25e (diff) | |
download | mariadb-git-3e83c4e8f90851040be921443b52144a2862444a.tar.gz |
Automatic merge
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/configure.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/configure.pl b/cmake/configure.pl index 69f973c41fb..3a7d187c0be 100644 --- a/cmake/configure.pl +++ b/cmake/configure.pl @@ -25,6 +25,7 @@ my $cmakeargs = ""; # Assume this script is in <srcroot>/cmake my $srcdir = dirname(dirname(abs_path($0))); my $cmake_install_prefix=""; +my $just_print= 0; # Sets installation directory, bindir, libdir, libexecdir etc # the equivalent CMake variables are given without prefix @@ -113,6 +114,11 @@ foreach my $option (@ARGV) system("cmake ${srcdir} -LH"); exit(0); } + if ($option =~ /print/) + { + $just_print=1; + next; + } if($option =~ /with-plugins=/) { my @plugins= split(/,/, substr($option,13)); @@ -223,6 +229,7 @@ foreach my $option (@ARGV) } print("configure.pl : calling cmake $srcdir $cmakeargs\n"); +exit(0) if ($just_print); unlink("CMakeCache.txt"); my $rc = system("cmake $srcdir $cmakeargs"); exit($rc); |