Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Tests/CMakeCommands/target_compile_options/main.cpp
3152 views
1
2
#ifdef DO_GNU_TESTS
3
4
# ifndef MY_PRIVATE_DEFINE
5
# error Expected MY_PRIVATE_DEFINE
6
# endif
7
8
# ifndef MY_PUBLIC_DEFINE
9
# error Expected MY_PUBLIC_DEFINE
10
# endif
11
12
# ifndef MY_MUTLI_COMP_PUBLIC_DEFINE
13
# error Expected MY_MUTLI_COMP_PUBLIC_DEFINE
14
# endif
15
16
# ifdef MY_INTERFACE_DEFINE
17
# error Unexpected MY_INTERFACE_DEFINE
18
# endif
19
20
#endif
21
22
#ifdef DO_CLANG_TESTS
23
24
# ifndef MY_PRIVATE_DEFINE
25
# error Expected MY_PRIVATE_DEFINE
26
# endif
27
28
# ifdef MY_PUBLIC_DEFINE
29
# error Unexpected MY_PUBLIC_DEFINE
30
# endif
31
32
# ifndef MY_MUTLI_COMP_PUBLIC_DEFINE
33
# error Expected MY_MUTLI_COMP_PUBLIC_DEFINE
34
# endif
35
36
#endif
37
38
int main()
39
{
40
return 0;
41
}
42
43