From c0c7cb51456efd57964cf73806eb2bae55e8cbb9 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 10 Jun 2022 13:19:54 -0400 Subject: [PATCH] CMakeLists.txt - link_directories() for check to ensure the directory check is located in is in the linker library search path --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index de45c10..eb692c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ project(minmea) find_package(Threads REQUIRED) # Workaround for https://github.com/libcheck/check/issues/48#issuecomment-322965461 find_package(PkgConfig) pkg_check_modules(CHECK REQUIRED check) +link_directories(${CHECK_LIBRARY_DIRS}) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wextra -Werror -std=c99") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE")