Re: [CMake] Platform-independent config package

2017-01-10 Thread Sergiu Deitsch
You can temporarily unset CMAKE_SIZEOF_VOID_P before calling write_basic_package_version_file. See for instance https://bitbucket.org/eigen/eigen/src/ff6170e75ab07d74d8f7dd21af777a94799d168d/CMakeLists.txt?at=3.3&fileviewer=file-view-default#CMakeLists.txt-541:545 . On Tue, Jan 10, 2017 at 7:52 PM

Re: [CMake] Platform-independent config package

2017-01-10 Thread Andreas Naumann
Dear Ghis, the easiest long-term fix would be an own glmConfig.cmake file. The command write_basic_package_version_file uses a template with those pointer checks. The glm-developers could simply copy the template to their source directory, remove the unneeded lines and run the configure_file c

[CMake] Platform-independent config package

2017-01-10 Thread Ghislain Vaillant
Dear all, 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. However, CMake detection fails on 32-bit platforms with the following error: ``` Any attempt to c