MCPcopy Create free account
hub / github.com/Kitware/CMake / TestCFlags

Function TestCFlags

Tests/Complex/Executable/testcflags.c:13–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13int TestCFlags(char* m)
14{
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;
26}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…