4f6bd7022b
It accepted an optional argument to test for equality, but no way to get the linker language of a particular target. TARGET_PROPERTY provides this flexibility and STREQUAL provides the necessary API for equality test. Extend the CompileDefinitions test to cover accessing the property of another target.
24 lines
397 B
C
24 lines
397 B
C
|
|
#ifndef LINK_CXX_DEFINE
|
|
#error Expected LINK_CXX_DEFINE
|
|
#endif
|
|
#ifndef LINK_LANGUAGE_IS_CXX
|
|
#error Expected LINK_LANGUAGE_IS_CXX
|
|
#endif
|
|
|
|
#ifdef LINK_C_DEFINE
|
|
#error Unexpected LINK_C_DEFINE
|
|
#endif
|
|
#ifdef LINK_LANGUAGE_IS_C
|
|
#error Unexpected LINK_LANGUAGE_IS_C
|
|
#endif
|
|
|
|
#ifndef C_EXECUTABLE_LINK_LANGUAGE_IS_C
|
|
#error Expected C_EXECUTABLE_LINK_LANGUAGE_IS_C define
|
|
#endif
|
|
|
|
void someFunc(void)
|
|
{
|
|
|
|
}
|