Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Tests/CMakeCommands/target_compile_options/consumer.cpp
3152 views
1
2
#ifdef DO_GNU_TESTS
3
4
# ifdef MY_PRIVATE_DEFINE
5
# error Unexpected MY_PRIVATE_DEFINE
6
# endif
7
8
# ifndef MY_PUBLIC_DEFINE
9
# error Expected MY_PUBLIC_DEFINE
10
# endif
11
12
# ifndef MY_INTERFACE_DEFINE
13
# error Expected MY_INTERFACE_DEFINE
14
# endif
15
16
# ifndef MY_MULTI_COMP_INTERFACE_DEFINE
17
# error Expected MY_MULTI_COMP_INTERFACE_DEFINE
18
# endif
19
20
# ifndef MY_MUTLI_COMP_PUBLIC_DEFINE
21
# error Expected MY_MUTLI_COMP_PUBLIC_DEFINE
22
# endif
23
24
#endif
25
26
#ifdef DO_CLANG_TESTS
27
28
# ifdef MY_PRIVATE_DEFINE
29
# error Unexpected MY_PRIVATE_DEFINE
30
# endif
31
32
# ifndef MY_MULTI_COMP_INTERFACE_DEFINE
33
# error Expected MY_MULTI_COMP_INTERFACE_DEFINE
34
# endif
35
36
# ifndef MY_MUTLI_COMP_PUBLIC_DEFINE
37
# error Expected MY_MUTLI_COMP_PUBLIC_DEFINE
38
# endif
39
40
#endif
41
42
#ifndef CONSUMER_LANG_CXX
43
# error Expected CONSUMER_LANG_CXX
44
#endif
45
46
#ifdef CONSUMER_LANG_C
47
# error Unexpected CONSUMER_LANG_C
48
#endif
49
50
#if !LANG_IS_CXX
51
# error Expected LANG_IS_CXX
52
#endif
53
54
#if LANG_IS_C
55
# error Unexpected LANG_IS_C
56
#endif
57
58
int main()
59
{
60
return 0;
61
}
62
63