diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-29 15:56:31 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-29 15:56:31 (GMT) |
commit | 8dc6db47776e3040c5650ff9b74a0f7793a2c815 (patch) | |
tree | 46dba4b499d63efcb88ae399b406f47a3d1bbb6a /Tests/ComplexOneConfig/Executable/testcflags.c | |
parent | 4f79ce8f1bea4c3a6259145d052a4c098d34a294 (diff) | |
download | CMake-8dc6db47776e3040c5650ff9b74a0f7793a2c815.zip CMake-8dc6db47776e3040c5650ff9b74a0f7793a2c815.tar.gz CMake-8dc6db47776e3040c5650ff9b74a0f7793a2c815.tar.bz2 |
ENH: add new test to make sure c and cxx flags are going to the right files
Diffstat (limited to 'Tests/ComplexOneConfig/Executable/testcflags.c')
-rw-r--r-- | Tests/ComplexOneConfig/Executable/testcflags.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/Executable/testcflags.c b/Tests/ComplexOneConfig/Executable/testcflags.c new file mode 100644 index 0000000..96224d4 --- /dev/null +++ b/Tests/ComplexOneConfig/Executable/testcflags.c @@ -0,0 +1,15 @@ +#include <string.h> +int TestCFlags(char* m) +{ + // TEST_CXX_FLAGS should not be defined in a c file +#ifdef TEST_CXX_FLAGS + strcpy(m, "CMake CMAKE_CXX_FLAGS (TEST_CXX_FLAGS) found in c file."); + return 0; +#endif + // TEST_C_FLAGS should be defined in a c file +#ifndef TEST_C_FLAGS + strcpy(m, "CMake CMAKE_C_FLAGS (TEST_C_FLAGS) not found in c file."); + return 0; +#endif + return 1; +} |