diff options
author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-10-18 09:55:18 (GMT) |
---|---|---|
committer | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-10-21 14:39:04 (GMT) |
commit | 07a2342fbc5cd2109b2024a04300086a66b37f3b (patch) | |
tree | 93d680b171f16c2220d9cac81e0ce521630bb9be /Tests/RunCMake | |
parent | bf02e750796c6b42b0e9d39ba322cd5191489a0e (diff) | |
download | CMake-07a2342fbc5cd2109b2024a04300086a66b37f3b.zip CMake-07a2342fbc5cd2109b2024a04300086a66b37f3b.tar.gz CMake-07a2342fbc5cd2109b2024a04300086a66b37f3b.tar.bz2 |
CheckTypeSize: Add support for C++
Previously if headers required to check the size of a type can be
compiled with C++ compiler only, the check would fail because the C
compiler fails. As a consequence, HAVE_${VARIABLE} would be set to
false, and ${VARIABLE} will be empty.
Teach CHECK_TYPE_SIZE to accept a new optional argument LANGUAGE
that allows one to explicitly set the compiler to use. The new
signature is therefore:
CHECK_TYPE_SIZE(TYPE VARIABLE [BUILTIN_TYPES_ONLY]
[LANGUAGE <language>])
Diffstat (limited to 'Tests/RunCMake')
0 files changed, 0 insertions, 0 deletions