File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ endfunction()
66
66
67
67
find_package (Threads MODULE REQUIRED )
68
68
69
- find_package (pegtl 3.1.1 QUIET CONFIG )
69
+ find_package (pegtl 3.1.0 QUIET CONFIG )
70
70
if (NOT pegtl_FOUND )
71
71
# If a compatible version of PEGTL is not already installed, build and install it from the submodule directory.
72
72
set (PEGTL_BUILD_TESTS OFF CACHE BOOL "Disable PEGTL tests" )
Original file line number Diff line number Diff line change 13
13
#include < tao/pegtl.hpp>
14
14
#include < tao/pegtl/contrib/parse_tree.hpp>
15
15
16
+ // Temporarily workaround the tao::demangle namespace in 3.1.0. This was fixed in PEGTL commit
17
+ // https://github.com/taocpp/PEGTL/commit/0cc3128e07734fb72e23e2eeee70b9f1fc13ca5f, which put this
18
+ // in the correct namespace defined by TAO_PEGTL_NAMESPACE (tao::graphqlpeg) and should be included
19
+ // in 3.1.1 or later. Once that version of PEGTL is released, this can be removed.
20
+ #include < tao/pegtl/version.hpp>
21
+
22
+ #if (TAO_PEGTL_VERSION_MAJOR == 3) && (TAO_PEGTL_VERSION_MINOR == 1) \
23
+ && (TAO_PEGTL_VERSION_PATCH < 1 )
24
+ namespace tao ::graphqlpeg {
25
+ using ::tao::demangle;
26
+ }
27
+ #endif
28
+
16
29
#include < string>
17
30
#include < string_view>
18
31
#include < variant>
You can’t perform that action at this time.
0 commit comments