You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[University of San Francisco](http://www.usfca.edu/)
12
-
*[Sam Harwell](http://tunnelvisionlabs.com/)
12
+
*[Sam Harwell](http://tunnelvisionlabs.com/)
13
13
Tool co-author, Java and C# target)
14
14
15
15
The C++ target has been the work of the following people:
@@ -40,6 +40,7 @@ The minimum C++ version to compile the ANTLR C++ runtime with is C++11. The supp
40
40
Include the antlr4-runtime.h umbrella header in your target application to get everything needed to use the library.
41
41
42
42
If you are compiling with cmake, the minimum version required is cmake 2.8.
43
+
By default, the libraries produced by the CMake build target C++11. If you want to target a different C++ standard, you can explicitly pass the standard - e.g. `-DCMAKE_CXX_STANDARD=17`.
43
44
44
45
#### Compiling on Windows with Visual Studio using he Visual Studio projects
45
46
Simply open the VS project from the runtime folder (VS 2013+) and build it.
@@ -69,5 +70,3 @@ If the CMake variable 'ANTLR4_INSTALL' is set, CMake Packages will be build and
69
70
They expose two packages: antlr4_runtime and antlr4_generator which can be referenced to ease up the use of the
70
71
ANTLR Generator and runtime.
71
72
Use and Sample can be found [here](cmake/Antlr4Package.md)
Copy file name to clipboardExpand all lines: runtime/Cpp/cmake/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,8 @@ The ANTLR C++ runtime source is downloaded from GitHub by default. However, user
129
129
130
130
Visual C++ compiler users may want to additionally define `ANTLR4_WITH_STATIC_CRT` before including the file. Set `ANTLR4_WITH_STATIC_CRT` to true if ANTLR4 C++ runtime library should be compiled with `/MT` flag, otherwise will be compiled with `/MD` flag. This variable has a default value of `OFF`. Changing `ANTLR4_WITH_STATIC_CRT` after building the library may require reinitialization of CMake or `clean` for the library to get rebuilt.
131
131
132
+
You may need to modify your local copy of ExternalAntlr4Cpp.cpp to modify some build settings. For example, to specify the C++ standard to use when building the runtime, add `-DCMAKE_CXX_STANDARD:STRING=17` to `CMAKE_CACHE_ARGS`.
133
+
132
134
### Examples
133
135
134
136
To build and link ANTLR4 static library to a target one may call:
0 commit comments