diff options
author | Joey Hess <joey@kitenet.net> | 2012-04-17 16:54:42 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-04-17 16:54:42 -0400 |
commit | e7f5f747e04176bda1d0e353eee3e0b5445b70f8 (patch) | |
tree | db04116306245f0efced7016bd895270c8fb433a /Debian/Debhelper/Buildsystem/cmake.pm | |
parent | 9926571a5156ca28175544d2b7cf69c926038b21 (diff) |
cmake: Only pass CPPFLAGS in CFLAGS in v9.
Diffstat (limited to 'Debian/Debhelper/Buildsystem/cmake.pm')
-rw-r--r-- | Debian/Debhelper/Buildsystem/cmake.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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}; } |