From e7f5f747e04176bda1d0e353eee3e0b5445b70f8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 17 Apr 2012 16:54:42 -0400 Subject: cmake: Only pass CPPFLAGS in CFLAGS in v9. --- Debian/Debhelper/Buildsystem/cmake.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Debian/Debhelper/Buildsystem/cmake.pm') diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm index 98029efd..f318b44b 100644 --- a/Debian/Debhelper/Buildsystem/cmake.pm +++ b/Debian/Debhelper/Buildsystem/cmake.pm @@ -44,7 +44,7 @@ sub configure { push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON"; # CMake doesn't respect CPPFLAGS, see #653916. - if ($ENV{CPPFLAGS}) { + if ($ENV{CPPFLAGS} && ! compat(8)) { $ENV{CFLAGS} .= ' ' . $ENV{CPPFLAGS}; $ENV{CXXFLAGS} .= ' ' . $ENV{CPPFLAGS}; } -- cgit v1.2.3