From f112bb4e92441805f17909a45c5309bc393d3bf4 Mon Sep 17 00:00:00 2001 From: Zebin Wu Date: Fri, 22 Dec 2023 01:40:00 +0800 Subject: [PATCH] linux: fix compiling error --- .github/workflows/linux-ci.yml | 2 +- platform/linux/CMakeLists.txt | 2 +- third_party/lua/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 020f035..450c1ef 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -35,6 +35,6 @@ jobs: - name: Run unit tests run: | cd build - ./platform/linux/homekit-bridge \ + ./homekit-bridge \ -d tests_scripts \ test diff --git a/platform/linux/CMakeLists.txt b/platform/linux/CMakeLists.txt index f155419..7e87aca 100644 --- a/platform/linux/CMakeLists.txt +++ b/platform/linux/CMakeLists.txt @@ -21,7 +21,7 @@ if(CONFIG_POSIX) endif() if(CONFIG_OPENSSL) - target_link_libraries(platform_linux PRIVATE platform::openssl ssl crypto) + target_link_libraries(platform_linux PRIVATE platform::openssl ssl crypto pthread) endif() if(CONFIG_MBEDTLS) diff --git a/third_party/lua/CMakeLists.txt b/third_party/lua/CMakeLists.txt index c954af9..db20e71 100644 --- a/third_party/lua/CMakeLists.txt +++ b/third_party/lua/CMakeLists.txt @@ -87,6 +87,7 @@ if(${PLATFORM} STREQUAL linux) target_compile_definitions(lua PUBLIC LUA_USE_LINUX ) + target_link_libraries(lua PRIVATE m dl) endif() # compile host luac