]> git.donarmstrong.com Git - debhelper.git/commitdiff
cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813 Thanks, Simon Ruderich for the patch...
authorJoey Hess <joey@kitenet.net>
Tue, 17 Apr 2012 13:10:14 +0000 (09:10 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 17 Apr 2012 13:10:14 +0000 (09:10 -0400)
Debian/Debhelper/Buildsystem/cmake.pm
debian/changelog

index cddd4b49e8375d3b24769db616dbf39cf823f4b8..98029efd21100cafe3e979570d660567589cd0ab 100644 (file)
@@ -43,6 +43,12 @@ sub configure {
        push @flags, "-DCMAKE_INSTALL_PREFIX=/usr";
        push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON";
 
+       # CMake doesn't respect CPPFLAGS, see #653916.
+       if ($ENV{CPPFLAGS}) {
+               $ENV{CFLAGS}   .= ' ' . $ENV{CPPFLAGS};
+               $ENV{CXXFLAGS} .= ' ' . $ENV{CPPFLAGS};
+       }
+
        $this->mkdir_builddir();
        eval { 
                $this->doit_in_builddir("cmake", $this->get_source_rel2builddir(), @flags, @_);
index 326a600aa38bd99377477557f4ea3c3de6ce2be1..a26abdacd9a4472c2e3cdacaa198f58f1019e110 100644 (file)
@@ -1,3 +1,11 @@
+debhelper (9.20120411) UNRELEASED; urgency=low
+
+  * cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813
+    Thanks, Simon Ruderich for the patch and for verifying no affected
+    package is broken by this change.
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 17 Apr 2012 09:09:19 -0400
+
 debhelper (9.20120410) unstable; urgency=low
 
   [ Joey Hess ]