Add c++ compilation include path for pyconfig.h
authorDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Wed, 26 Dec 2012 21:17:15 +0000 (23:17 +0200)
committerDimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
Wed, 26 Dec 2012 21:17:15 +0000 (23:17 +0200)
debian/rules

index d6fe8f7e0962b53b2022c8ee07ad876b673c032f..af59fdcfa8b7760819101bda4f0edad56e384099 100755 (executable)
@@ -10,6 +10,8 @@
 export DH_VERBOSE=1
 export DH_OPTIONS=-v
 
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
 clean:
        dh_testdir
        dh_auto_clean --buildsystem=cmake
@@ -20,7 +22,7 @@ build-arch: build-stamp
 build-indep: build-stamp
 build-stamp:
        dh_testdir
-       dh_auto_configure --buildsystem=cmake 
+       dh_auto_configure --buildsystem=cmake -- -DCMAKE_CXX_FLAGS=-I/usr/include/${DEB_HOST_MULTIARCH}/python2.7
        dh_auto_build --buildsystem=cmake
        dh_auto_test --buildsystem=cmake