We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5435f14 commit 9a166f6Copy full SHA for 9a166f6
runtime/Cpp/runtime/CMakeLists.txt
@@ -3,11 +3,13 @@ option(TRACE_ATN "Trace ATN simulation" OFF)
3
option(ANTLR_BUILD_SHARED "Build the shared library of the ANTLR runtime" ON)
4
option(ANTLR_BUILD_STATIC "Build the static library of the ANTLR runtime" ON)
5
6
+include(GNUInstallDirs)
7
+
8
if (NOT ANTLR_BUILD_SHARED AND NOT ANTLR_BUILD_STATIC)
9
message(FATAL_ERROR "Options ANTLR_BUILD_SHARED and ANTLR_BUILD_STATIC can't both be OFF")
10
endif()
11
-set(libantlrcpp_INCLUDE_INSTALL_DIR "include/antlr4-runtime")
12
+set(libantlrcpp_INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/antlr4-runtime")
13
14
set(libantlrcpp_INCLUDE_DIRS
15
${PROJECT_SOURCE_DIR}/runtime/src
0 commit comments