From d61379d2f745e56bccd3f437179b254669acfd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20R=C3=B6hling?= Date: Sun, 14 Apr 2024 23:29:24 +0200 Subject: [PATCH] Fix subunit library discovery in FindCheck module --- .github/workflows/ci.yml | 2 +- cmake/FindCheck.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 198a67d..550eed0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update -qq - sudo apt-get install -y check cmake libconfuse-dev libhiredis-dev libsqlite3-dev libsubunit-dev redis + sudo apt-get install -y check cmake libconfuse-dev libhiredis-dev libsqlite3-dev redis - name: Build PostSRSd run: | mkdir _build diff --git a/cmake/FindCheck.cmake b/cmake/FindCheck.cmake index dc93bf0..7649a46 100644 --- a/cmake/FindCheck.cmake +++ b/cmake/FindCheck.cmake @@ -21,7 +21,7 @@ else() NAMES check_pic check HINTS ${PC_CHECK_LIBRARY_DIRS} ) - find_path(Check_subunit_LIBRARY subunit HINTS ${PC_SUBUNIT_LIBRARY_DIRS}) + find_library(Check_subunit_LIBRARY subunit HINTS ${PC_SUBUNIT_LIBRARY_DIRS}) find_library(Check_m_LIBRARY m) find_library(Check_rt_LIBRARY rt) find_package(Threads REQUIRED)