ENH: set expected failure for tests
[cmake.git] / Tests / ComplexOneConfig / Executable / testcflags.c
blobf4d584844294f17d9c42f6566377ad35ee965b61
1 #include <string.h>
3 int TestTargetCompileFlags(char* m)
5 #ifndef COMPLEX_TARGET_FLAG
6 strcpy(m, "CMAKE SET_TARGET_PROPERTIES COMPILE_FLAGS did not work");
7 return 0;
8 #endif
9 strcpy(m, "CMAKE SET_TARGET_PROPERTIES COMPILE_FLAGS worked");
10 return 1;
13 int TestCFlags(char* m)
15 /* TEST_CXX_FLAGS should not be defined in a c file */
16 #ifdef TEST_CXX_FLAGS
17 strcpy(m, "CMake CMAKE_CXX_FLAGS (TEST_CXX_FLAGS) found in c file.");
18 return 0;
19 #endif
20 /* TEST_C_FLAGS should be defined in a c file */
21 #ifndef TEST_C_FLAGS
22 strcpy(m, "CMake CMAKE_C_FLAGS (TEST_C_FLAGS) not found in c file.");
23 return 0;
24 #endif
25 return 1;