Skip to content

Commit 6ad5a97

Browse files
committed
[Cpp] CMake: include GNUInstallDirs unconditionally to have CMAKE_INSTALL_DOCDIR available
Signed-off-by: Joachim Mairböck <[email protected]>
1 parent d96e44b commit 6ad5a97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/Cpp/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ if(WITH_DEMO)
138138
add_subdirectory(demo)
139139
endif(WITH_DEMO)
140140

141+
include(GNUInstallDirs)
142+
141143
# Generate CMake Package Files only if install is active
142144
if (ANTLR4_INSTALL)
143145

144-
include(GNUInstallDirs)
145146
include(CMakePackageConfigHelpers)
146147

147148
if(NOT ANTLR4_CMAKE_DIR)

0 commit comments

Comments
 (0)