diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-10 15:29:13 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-12-11 16:27:40 +0100 |
commit | 46e034bb06093990fe885f8dbdef825bc0eb39e3 (patch) | |
tree | 5acaf44646724ffb087c03ca7f6eeaa7fe6bf001 /ConfigureChecks.cmake | |
parent | ddcd744708f11d52c28400f3ff22c52b7ebc52b5 (diff) | |
download | socket_wrapper-46e034bb06093990fe885f8dbdef825bc0eb39e3.tar.gz socket_wrapper-46e034bb06093990fe885f8dbdef825bc0eb39e3.tar.xz socket_wrapper-46e034bb06093990fe885f8dbdef825bc0eb39e3.zip |
cmake: Detect attribute format
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index dd3fdb8..5b4813b 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -169,6 +169,14 @@ int main(void) { return 0; }" HAVE_GCC_THREAD_LOCAL_STORAGE) +check_c_source_compiles(" +void log_fn(const char *format, ...) __attribute__ ((format (printf, 1, 2))); + +int main(void) { + return 0; +}" HAVE_FUNCTION_ATTRIBUTE_FORMAT) + + check_library_exists(dl dlopen "" HAVE_LIBDL) if (HAVE_LIBDL) find_library(DLFCN_LIBRARY dl) |