mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix Jansson dependency
This commit is contained in:
parent
324bb907f6
commit
5842f8283d
2 changed files with 2 additions and 3 deletions
|
@ -31,7 +31,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
|||
|
||||
include(FindPkgConfig)
|
||||
|
||||
pkg_check_modules(JANSSON jansson)
|
||||
pkg_check_modules(JANSSON IMPORTED_TARGET jansson)
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(tests)
|
||||
|
|
|
@ -44,11 +44,10 @@ endif()
|
|||
target_include_directories(villas-common PUBLIC
|
||||
${villas-common_SOURCE_DIR}/include
|
||||
${villas-common_SOURCE_DIR}/thirdparty/spdlog/include
|
||||
${JANSSON_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
target_link_libraries(villas-common PUBLIC
|
||||
${JANSSON_LIBRARIES}
|
||||
PkgConfig::JANSSON
|
||||
${CMAKE_DL_LIBS}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue