summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-07-20 09:11:15 -0700
committerGitHub <noreply@github.com>2021-07-20 11:11:15 -0500
commitf194486a6dc9e59bd294012e4d6abb2ce84c338c (patch)
tree752799a89975c69b488a463f27b1880b062484f0
parentb251476af6095e600e227b659c06fb3393e82af5 (diff)
ANTLR3: Install into `CMAKE_INSTALL_LIBDIR` (#6912)
On some platforms, autotools installs ANTLR3's libraries into lib but CMAKE_INSTALL_LIBDIR is set to lib64 (e.g., Fedora 33). This commit sets --libdir to force autotools to install the library into the directory specified by CMAKE_INSTALL_LIBDIR.
-rw-r--r--cmake/FindANTLR3.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/FindANTLR3.cmake b/cmake/FindANTLR3.cmake
index ea0c4131f..373182904 100644
--- a/cmake/FindANTLR3.cmake
+++ b/cmake/FindANTLR3.cmake
@@ -112,6 +112,7 @@ if(NOT ANTLR3_FOUND_SYSTEM)
--with-pic
--disable-antlrdebug
--prefix=<INSTALL_DIR>
+ --libdir=<INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}
--srcdir=<SOURCE_DIR>
--disable-shared
--enable-static
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback