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