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:18:17 +0200 |
commit | fdc9cfaa148840c0c76d3837e359eeca5b33e3ad (patch) | |
tree | 2994cecca83ded4adeb48bb8e74c8cfea8061ac2 /CMakeLists.txt | |
parent | fa993130f91a09c5b8d1454514a4ad44dd54f116 (diff) | |
download | libxml2-fdc9cfaa148840c0c76d3837e359eeca5b33e3ad.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.
Diffstat (limited to 'CMakeLists.txt')
-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> |