<div dir="ltr">You can temporarily unset CMAKE_SIZEOF_VOID_P before calling <span style="font-size:12.8px">write_basic_package_version_fi</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">le. See for instance <a href="https://bitbucket.org/eigen/eigen/src/ff6170e75ab07d74d8f7dd21af777a94799d168d/CMakeLists.txt?at=3.3&fileviewer=file-view-default#CMakeLists.txt-541:545">https://bitbucket.org/eigen/eigen/src/ff6170e75ab07d74d8f7dd21af777a94799d168d/CMakeLists.txt?at=3.3&fileviewer=file-view-default#CMakeLists.txt-541:545</a>.</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 10, 2017 at 7:52 PM, Ghislain Vaillant <span dir="ltr"><<a href="mailto:ghisvail@gmail.com" target="_blank">ghisvail@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"><div>Dear all,<br><br>I am currently hit by an issue with the CMake detection of a header-only library [1]. The library is built on a 64-bit machine and packaged for all other architectures supported by Debian.<br><br>However, CMake detection fails on 32-bit platforms with the following error:<br><br>```<br>Any attempt to call `find_package(glm REQUIRED)` produces the following<br>error:<br><br>```<br>Could not find a configuration file for package "glm" that is<br>compatible with requested version "".<br><br>The following configuration files were considered but not accepted:<br><br>    /usr/lib/cmake/glm/glmConfig.<wbr>cmake, version: 0.9.8 (64bit)<br>```<br><br></div>How can this be effectively solved? Can the bit-ness detection be dropped somehow? It should not be needed for a header-only target.<br><div><br></div><div>Cheers,<br></div><div>Ghis<br></div><div><br><br>[1] <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850277" target="_blank">https://bugs.debian.org/cgi-<wbr>bin/bugreport.cgi?bug=850277</a></div></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br></div>