diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2021-07-19 13:48:38 -0700 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2021-07-19 13:48:38 -0700 |
commit | 15754172a3b222c15987d00d91eaf788487d26ec (patch) | |
tree | 752799a89975c69b488a463f27b1880b062484f0 | |
parent | b251476af6095e600e227b659c06fb3393e82af5 (diff) |
ANTLR3: Install into `CMAKE_INSTALL_LIBDIR`libdir
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.cmake | 1 |
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 |