<div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">crickets.... crickets... crickets...<br><br></div><div class="gmail_extra">That's the response I get from the internet?  <br><br></div><div class="gmail_extra">Here are some other interesting bits:<br></div><div class="gmail_extra"><br><a href="https://cmake.org/cmake/help/v3.8/manual/cmake-packages.7.html">https://cmake.org/cmake/help/v3.8/manual/cmake-packages.7.html</a><br><br></div><div class="gmail_extra">Does not make any reference to <br><pre><span class="gmail-n">configure_<span class="gmail-highlighted">package</span>_config_file <br></span></pre><pre><span class="gmail-n">in<br><br><a href="https://cmake.org/cmake/help/v3.8/module/CMakePackageConfigHelpers.html">https://cmake.org/cmake/help/v3.8/module/CMakePackageConfigHelpers.html</a><br><br></span></pre><pre><span class="gmail-n">But happily goes about telling pkg maintainers to go about and do with config_file what doc on </span><br><span class="gmail-n"><span class="gmail-n">configure_<span class="gmail-highlighted">package</span>_config_file says not to do... and that is NOT to use configure_file in the first place at:</span></span><br><br><a href="https://cmake.org/cmake/help/v3.8/manual/cmake-packages.7.html#id16">https://cmake.org/cmake/help/v3.8/manual/cmake-packages.7.html#id16</a><br></pre><pre></pre><pre>And then there is <span class="gmail-n">INSTALL_DESTINATION in:</span><br><br><span class="gmail-n">configure_package_config_file</span><span class="gmail-p">(</span><span class="gmail-o"><</span><span class="gmail-nb">input</span><span class="gmail-o">></span> <span class="gmail-o"><</span><span class="gmail-n">output</span><span class="gmail-o">></span>
  <span class="gmail-n">INSTALL_DESTINATION</span> <span class="gmail-o"><</span><span class="gmail-n">path</span><span class="gmail-o">><br><br></span></pre><pre><span class="gmail-o">which gives the pkg maintainer just enough rope to hang themselves with.<br></span></pre><pre><span class="gmail-o">I mean hey they could (and have) put it just about anywhere like <br><br>${CMAKE_INSTALL_PREFIX}/CMake  </span>or<br><span class="gmail-o"><span class="gmail-o">${CMAKE_INSTALL_PREFIX}/lib/cmake or<br></span></span><span class="gmail-o"><span class="gmail-o">${CMAKE_INSTALL_PREFIX}/lib/cmake/pkgname or<br></span></span><span class="gmail-o"><span class="gmail-o">${CMAKE_INSTALL_PREFIX}/lib/cmake/pkgname-<version> or<br></span></span><span class="gmail-o"><span class="gmail-o">${CMAKE_INSTALL_PREFIX}/share/pkgname or<br></span></span><span class="gmail-o"><span class="gmail-o">${CMAKE_INSTALL_PREFIX}/share</span></span><span class="gmail-o"><span class="gmail-o"><span class="gmail-o"><span class="gmail-o">/cmake/</span></span>pkgname or</span></span></pre><pre><span class="gmail-o"><span class="gmail-o">... well you get the idea.  With or without version info. Where IMO </span></span><br><span class="gmail-n">configure_package_config_file</span><span class="gmail-p"> should require version info and put in "standard directory" whatever that may be.</span></pre><div class="gmail_extra">Please someone in internet land tell me I am wrong. <br><br>I'll await the crickets. <br></div></div><div class="gmail_extra"><br></div></div>