diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-07-18 10:58:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-24 14:40:00 (GMT) |
commit | 4f6bd7022bf670f9516c7b5e67c254d639425ab4 (patch) | |
tree | 710881681b38d86aa8801dabcce2895206c6f969 /Tests/CompileDefinitions/compiletest_mixed_c.c | |
parent | f82c751d7b3ee3907d780060985a36bdddcabad3 (diff) | |
download | CMake-4f6bd7022bf670f9516c7b5e67c254d639425ab4.zip CMake-4f6bd7022bf670f9516c7b5e67c254d639425ab4.tar.gz CMake-4f6bd7022bf670f9516c7b5e67c254d639425ab4.tar.bz2 |
Remove the LINK_LANGUAGE generator expression.
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.
Diffstat (limited to 'Tests/CompileDefinitions/compiletest_mixed_c.c')
-rw-r--r-- | Tests/CompileDefinitions/compiletest_mixed_c.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CompileDefinitions/compiletest_mixed_c.c b/Tests/CompileDefinitions/compiletest_mixed_c.c index 698c989..a270b2b 100644 --- a/Tests/CompileDefinitions/compiletest_mixed_c.c +++ b/Tests/CompileDefinitions/compiletest_mixed_c.c @@ -13,6 +13,10 @@ #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) { |