diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-05-16 13:52:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-24 13:06:53 (GMT) |
commit | 32410140a7c592090249db772fd5f18c7808a3aa (patch) | |
tree | 055e13759b3d6a1a7d67311c3f0fcb609c5adcdb /Tests/CompileDefinitions/compiletest_mixed_c.c | |
parent | a7ba4520c7b15dc9f56d2c4718748b79b12c0c89 (diff) | |
download | CMake-32410140a7c592090249db772fd5f18c7808a3aa.zip CMake-32410140a7c592090249db772fd5f18c7808a3aa.tar.gz CMake-32410140a7c592090249db772fd5f18c7808a3aa.tar.bz2 |
Add $<LINK_LANGUAGE> generator expression
They can't be used when evaluating link libraries, but they can be
used for include directories and compile definitions. Later they can
be used for compile options.
Diffstat (limited to 'Tests/CompileDefinitions/compiletest_mixed_c.c')
-rw-r--r-- | Tests/CompileDefinitions/compiletest_mixed_c.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/CompileDefinitions/compiletest_mixed_c.c b/Tests/CompileDefinitions/compiletest_mixed_c.c new file mode 100644 index 0000000..698c989 --- /dev/null +++ b/Tests/CompileDefinitions/compiletest_mixed_c.c @@ -0,0 +1,19 @@ + +#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 + +void someFunc(void) +{ + +} |