Commit 711f3057 authored by Michael Pyne's avatar Michael Pyne

Fix bug 171248 (CMAKE_CXX_FLAGS syntax wrong) by applying Daniel Richard G.'s proposed patch.


svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=865558
parent dac92a98
......@@ -4570,9 +4570,9 @@ sub safe_run_cmake
# Get the user's CXXFLAGS, use them if specified and not already given
# on the command line.
my $cxxflags = get_option ($module, 'cxxflags');
if ($cxxflags and not grep { /^-DCMAKE_CXX_FLAGS=/ } @commands)
if ($cxxflags and not grep { /^-DCMAKE_CXX_FLAGS(:\w+)?=/ } @commands)
push @commands, "-DCMAKE_CXX_FLAGS=$cxxflags";
push @commands, "-DCMAKE_CXX_FLAGS:STRING=$cxxflags";
my $prefix = get_option ($module, 'prefix');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment