[CMake] Platform-independent config package

Ghislain Vaillant ghisvail at gmail.com
Tue Jan 10 13:52:30 EST 2017


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 call `find_package(glm REQUIRED)` produces the following
error:

```
Could not find a configuration file for package "glm" that is
compatible with requested version "".

The following configuration files were considered but not accepted:

    /usr/lib/cmake/glm/glmConfig.cmake, version: 0.9.8 (64bit)
```

How can this be effectively solved? Can the bit-ness detection be dropped
somehow? It should not be needed for a header-only target.

Cheers,
Ghis


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850277
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170110/1f5f8ac8/attachment.html>


More information about the CMake mailing list