13 Commits

Author SHA1 Message Date
Nick Wellnhofer
5737466a31 cmake: Only link with winsock2 if HTTP is enabled 2024-11-23 15:49:04 +01:00
Nick Wellnhofer
d4fc7b7065 cmake: Fix indentation in libxml2-config.cmake.in 2024-11-23 15:43:26 +01:00
Saleem Abdulrasool
4e27bbddfa build: add missing Bcrypt link on Windows
When building on Windows, we must link against `Bcrypt` to satisfy the
use of `BCryptGenRandom`. Add this to the link interface in CMake to
allow use of libxml2 as a static library.
2024-11-22 15:48:07 -08:00
Michele Bianchi
df098e3bf6 Set LIBXML2_FOUND if it has been properly configured 2024-01-04 19:22:57 +00:00
James Le Cuirot
9d53452206
cmake: Check whether static linking dependencies found in config files
If they were required when building libxml2 then they will also be
required when statically linking against it. Failing to find them will
just lead to undefined references later so detect this early.
2023-09-23 16:48:54 +01:00
Markus Rickert
0048728916 Add variables for configured options to CMake config files 2021-01-05 22:03:47 +01:00
Markus Rickert
95519737af Check if variables exist when defining targets 2021-01-05 22:03:47 +01:00
Markus Rickert
ec11987592 Add xmlcatalog target and definition to config files 2021-01-05 22:03:47 +01:00
Markus Rickert
2377a312b9 Remove include directories for link-only dependencies 2021-01-05 22:03:47 +01:00
Markus Rickert
26835480dc Fix ICU build in CMake 2021-01-05 22:03:47 +01:00
Markus Rickert
84b76d99f1 Update CMake config files 2020-12-07 14:37:23 +01:00
Samuel Martin
3211973961 libxml2-config.cmake.in: update include directories
Align the include directories on those from the pkg-config module.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
2015-02-13 01:53:07 +01:00
Samuel Martin
fa23ac1a79 Provide cmake module
* add libxml2-config.cmake.in template
* configure.ac: add libxml2-config.cmake.in to the configured file list
* Makefile.am: install libxml2-config.cmake under ${libdir}/cmake/libxml2

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
2014-10-13 18:02:53 +08:00