<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 12, 2015 at 1:21 AM, Andrew Kelley <span dir="ltr"><<a href="mailto:superjoe30@gmail.com" target="_blank">superjoe30@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_extra"></div></span><div class="gmail_extra">Perhaps I should take this bug report to git-buildpackage. I see output like this:<br><br>dh build <br>   dh_testdir<br>   dh_auto_configure<br>    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None<br>CMAKE_INSTALL_LIBDIR: lib<br><br></div><div class="gmail_extra">So it is indeed passing the  -DCMAKE_INSTALL_PREFIX=/usr to cmake, and using GNUInstallDirs, but somehow the ${CMAKE_INSTALL_LIBDIR} variable is "lib".<br><br></div><div class="gmail_extra">When I run the simple example outside of git buildpackage, I get the expected "lib/$triplet" output.<br></div></div>
</blockquote></div><br></div><div class="gmail_extra">I figured out the problem. The CMakeLists.txt called include(GNUInstallDirs) before project(). Moving the include(GNUInstallDirs) to after the project() line solved the issue.<br></div></div>