Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9a166f6

Browse files
committedMar 20, 2025·
Use the correct install prefix for cmake includes.
Signed-off-by: Henner Zeller <[email protected]>
1 parent 5435f14 commit 9a166f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎runtime/Cpp/runtime/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ option(TRACE_ATN "Trace ATN simulation" OFF)
33
option(ANTLR_BUILD_SHARED "Build the shared library of the ANTLR runtime" ON)
44
option(ANTLR_BUILD_STATIC "Build the static library of the ANTLR runtime" ON)
55

6+
include(GNUInstallDirs)
7+
68
if (NOT ANTLR_BUILD_SHARED AND NOT ANTLR_BUILD_STATIC)
79
message(FATAL_ERROR "Options ANTLR_BUILD_SHARED and ANTLR_BUILD_STATIC can't both be OFF")
810
endif()
911

10-
set(libantlrcpp_INCLUDE_INSTALL_DIR "include/antlr4-runtime")
12+
set(libantlrcpp_INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/antlr4-runtime")
1113

1214
set(libantlrcpp_INCLUDE_DIRS
1315
${PROJECT_SOURCE_DIR}/runtime/src

0 commit comments

Comments
 (0)
Please sign in to comment.