[CMake] GenerateExportHeader

Hendrik Sattler post at hendrik-sattler.de
Sat Mar 22 08:57:50 EDT 2014


On 22. März 2014 11:26:23 MEZ, Theodore Papadopoulo <Theodore.Papadopoulo at inria.fr> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>	I wonder why GenerateExportHeader is tied to the C++ compiler (by
>using the check_cxx_* functions instead if their check_c_* variants).
>As far as I can tell it would be better to just use the C compiler (or
>a function that depends on C/CXX).

It should actually act on the enabled languages, not a hardcoded one.
You can find a fixed version at
https://gitorious.org/openobex/mainline/source/2e1c0fc5a8f5e41886141a6b402d00db735ccf49:CMakeModules/GenerateExportHeader.cmake

>On linux/mac (at least with gcc), this does not seem to be a problem,
>but on windows, C only projects (Visual Studio 11) choke on the
>current GenerateExportHeader because there is no C++ compiler.
>
>	Thank's
>
>	Theo.
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1
>Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
>iEYEARECAAYFAlMtZU8ACgkQEr8WrU8nPV0jUwCghWSZ1HcC44P83PhiusN9p7CQ
>0UkAniK+sAo7vY5Q9dK45S0pYRDgw1V8
>=FGem
>-----END PGP SIGNATURE-----




More information about the CMake mailing list