diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 41fedb6..ade8aac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -238,10 +238,18 @@ if(ULOOP_SUPPORT) target_link_options(uloop_lib PRIVATE ${UCODE_MODULE_LINK_OPTIONS}) set(CMAKE_REQUIRED_LIBRARIES ${libubox}) check_function_exists(uloop_timeout_remaining64 REMAINING64_FUNCTION_EXISTS) + check_function_exists(uloop_interval_set INTERVAL_FUNCTION_EXISTS) + check_function_exists(uloop_signal_add SIGNAL_FUNCTION_EXISTS) unset(CMAKE_REQUIRED_LIBRARIES) if(REMAINING64_FUNCTION_EXISTS) target_compile_definitions(uloop_lib PUBLIC HAVE_ULOOP_TIMEOUT_REMAINING64) endif() + if(INTERVAL_FUNCTION_EXISTS) + target_compile_definitions(uloop_lib PUBLIC HAVE_ULOOP_INTERVAL) + endif() + if(SIGNAL_FUNCTION_EXISTS) + target_compile_definitions(uloop_lib PUBLIC HAVE_ULOOP_SIGNAL) + endif() target_link_libraries(uloop_lib ${libubox}) endif() |