浏览代码

CMakeLists.txt - link_directories() for check to ensure the directory check is located in is in the linker library search path

Chris Morgan 3 年之前
父节点
当前提交
c0c7cb5145
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      CMakeLists.txt

+ 1 - 0
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")