mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +00:00
73d28d2177
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>])
9 lines
271 B
Plaintext
9 lines
271 B
Plaintext
CMake Error at .*/Modules/CheckStructHasMember.cmake:[0-9]+. \(message\):
|
|
Unknown arguments:
|
|
|
|
LANGUAGE;C;CXX
|
|
|
|
Call Stack \(most recent call first\):
|
|
CheckStructHasMemberTooManyArguments.cmake:[0-9]+ \(check_struct_has_member\)
|
|
CMakeLists.txt:[0-9]+ \(include\)
|