<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 12, 2015 at 1:12 AM, Felix Geyer <span dir="ltr"><<a href="mailto:fgeyer@debian.org" target="_blank">fgeyer@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 12.09.2015 09:13, Andrew Kelley wrote:<br>
> Package: cmake<br>
> Version: 3.2.2-2+b1<br>
> Severity: important<br>
><br>
><br>
> Here is a simple CMakeLists.txt file:<br>
><br>
> include(GNUInstallDirs)<br>
> message("lib: ${CMAKE_INSTALL_LIBDIR}")<br>
><br>
> It outputs: "lib: lib". No arch triplet.<br>
><br>
> I also tested this with cmake from experimental, currently version<br>
> 3.3.1.<br>
<br>
</span>% cmake -DCMAKE_INSTALL_PREFIX=/usr .<br>
lib: lib/x86_64-linux-gnu<br>
-- Configuring done<br>
<br>
cmake install to the multi-arch path only when the prefix is set to /usr.<br>
<br>
The git commit has some more information:<br>
<a href="https://github.com/Kitware/CMake/commit/620939e4e6f5a61cd5c0fac2704de4bfda0eb7ef" rel="noreferrer" target="_blank">https://github.com/Kitware/CMake/commit/620939e4e6f5a61cd5c0fac2704de4bfda0eb7ef</a><br></blockquote></div><br></div><div class="gmail_extra">Thank you for the example. I am indeed able to reproduce this behavior.<br><br></div><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>