diff options
author | Luca Niccoli <lultimouomo@gmail.com> | 2023-04-30 13:02:31 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-04-30 13:31:44 +0200 |
commit | db6783a8aae7e671665e0043b05a13aa6aa85c47 (patch) | |
tree | 00e2aa8429c84e4d4f32f17d6a9eff9d6d06812d | |
parent | e3eec989e647af95abb4cea7189a7421b6d13317 (diff) | |
download | libxml2-db6783a8aae7e671665e0043b05a13aa6aa85c47.tar.gz |
cmake: Fix va_copy detection
va_copy is defined by the standard as a macro, so check_function_exists
will not detect it; check_symbol_exists will.
Fixes #528.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 86b2b0aa..834b35d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,8 +169,8 @@ if (NOT MSVC) check_include_files(sys/timeb.h HAVE_SYS_TIMEB_H) check_include_files(sys/time.h HAVE_SYS_TIME_H) check_include_files(unistd.h HAVE_UNISTD_H) - check_function_exists(va_copy HAVE_VA_COPY) - check_function_exists(__va_copy HAVE___VA_COPY) + check_symbol_exists(va_copy stdarg.h HAVE_VA_COPY) + check_symbol_exists(__va_copy stdarg.h HAVE___VA_COPY) set(LT_OBJDIR ".libs/") check_c_source_compiles(" #include <stdarg.h> |