CMake/Tests/RunCMake/CheckModules
Daniele E. Domenichelli 73d28d2177 CheckStructHasMember: Add support for C++
Previously if headers required to check if a struct has a member can be
compiled with C++ compiler only, the check would fail because the C
compiler fails.  As a consequence, the result variable would be set to
false, even if the struct has that particular member.

Teach CHECK_STRUCT_HAS_MEMBER to accept a new optional argument LANGUAGE
that allows one to explicitly set the compiler to use.  The new
signature is therefore:

  CHECK_STRUCT_HAS_MEMBER (<struct> <member> <header> <variable>
                           [LANGUAGE <language>])
2013-10-08 09:43:06 -04:00
..
CMakeLists.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberMissingKey-result.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberMissingKey-stderr.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberMissingKey.cmake CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberMissingLanguage-result.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberMissingLanguage-stderr.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberMissingLanguage.cmake CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberOk.cmake CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberTooManyArguments-result.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberTooManyArguments-stderr.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberTooManyArguments.cmake CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberUnknownLanguage-result.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberUnknownLanguage-stderr.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberUnknownLanguage.cmake CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberWrongKey-result.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberWrongKey-stderr.txt CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
CheckStructHasMemberWrongKey.cmake CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00
RunCMakeTest.cmake CheckStructHasMember: Add support for C++ 2013-10-08 09:43:06 -04:00