ANTLR3: Install into `CMAKE_INSTALL_LIBDIR` (#6912)
authorAndres Noetzli <andres.noetzli@gmail.com>
Tue, 20 Jul 2021 16:11:15 +0000 (09:11 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Jul 2021 16:11:15 +0000 (11:11 -0500)
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.

cmake/FindANTLR3.cmake

index ea0c4131f5d9ae691f9a37058a7e0904e0df8f64..37318290426fdba7fc5a3b9b9b0708d8ad002539 100644 (file)
@@ -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