clamav/cmake
Val Snyder af6d3e85ec
CMake: improve ncurses detection; separate TINFO_LIBRARY input
I found that on macOS, setting the libncurses.a and libtinfo.a into the
same CURSES_LIBRARY variable does not find or link with libtinfo.a.

To fix this, this commit adds a separate TINFO_LIBRARY variable.
In the end, CURSES_LIBRARIES and the Curses::curses CMake TARGET will
still have both libraries set, if both are provided.

This fix is necessary if the ncurses was built with `--with-terminfo`.
I think we got away without it on Linux because of pkg-config.

I also found that Apple's ncurses is prioritized by PkgConfig over one
specified by using variables. To this end, we'll skip PkgConfig if
the include path was provided.
2025-08-27 14:24:27 -04:00
..
CheckFDPassing.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckFDPassing.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckFileOffsetBits.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckFileOffsetBits.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckFmapFeatures.cmake Fix typos (no functional changes) 2024-01-19 09:08:36 -08:00
CheckFTS.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckMallinfo.c clamd: Fix bug reporting memory stats, used by clamdtop 2025-03-13 10:38:49 -07:00
CheckMallinfo.cmake clamd: Fix bug reporting memory stats, used by clamdtop 2025-03-13 10:38:49 -07:00
CheckSignedRightShift.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckSignedRightShift.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckStructPacking.cmake cmake: Fix stuct packing, alignment attribute test 2021-02-16 19:17:50 -08:00
CheckStructPacking_PRAGMA_PACK.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckStructPacking_PRAGMA_PACK_HPPA.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckUnamePosix.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
CheckUnamePosix.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
ColourMessage.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
ExtractValidFlags.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
FindCUnit.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
FindCURSES.cmake CMake: improve ncurses detection; separate TINFO_LIBRARY input 2025-08-27 14:24:27 -04:00
FindIconv.cmake cmake/FindIconv.cmake: fix return type in test code 2021-07-30 14:23:13 -07:00
FindJSONC.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
FindLibcheck.cmake CMake: Add CTest support to match Autotools checks 2021-02-25 11:41:26 -08:00
FindLLVM.cmake Fix typos (no functional changes) 2023-11-26 18:01:19 -05:00
FindMilter.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
FindMSPack.cmake CMake: Support external TomsFastMath library (libtfm) 2022-02-10 12:54:23 -07:00
FindPCRE2.cmake cmake: Fix vcpkg debug build issues 2021-02-25 11:55:06 -08:00
FindPthreadW32.cmake cmake: Fix vcpkg debug build issues 2021-02-25 11:55:06 -08:00
FindRust.cmake Codesign: fix test files & upgrade clamav-signature-util for related fix 2025-05-05 16:54:07 -04:00
FindSYSTEMD.cmake Fix systemd detection to detect also older versions of systemd 2021-08-22 10:14:20 -07:00
FindValgrind.cmake CMake: Add CTest support to match Autotools checks 2021-02-25 11:41:26 -08:00
TestInline.c Add CMake build tooling 2020-08-13 00:25:34 -07:00
TestInline.cmake Add CMake build tooling 2020-08-13 00:25:34 -07:00
Version.cmake CMake: Support to build deb, rpm, & macOS pkg packages 2021-08-18 13:53:34 -07:00