summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/19 advanced options/subprojects/cmOpts/cmTest.cpp
blob: a00cdcd95be5d72c37ebc3463bdb61affe894db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "cmTest.hpp"

#if __cplusplus < 201103L
#error "At least C++11 is required"
#endif

#if __cplusplus >= 201402L
#error "At most C++11 is required"
#endif

#ifndef MESON_GLOBAL_FLAG
#error "MESON_GLOBAL_FLAG was not set"
#endif

#ifdef MESON_SPECIAL_FLAG1
#error "MESON_SPECIAL_FLAG1 *was* set"
#endif

#ifdef MESON_SPECIAL_FLAG2
#error "MESON_SPECIAL_FLAG2 *was* set"
#endif

int getTestInt() {
  return MESON_MAGIC_INT;
}