From 78e2875e91ca999d75be26315753f9077cb86a5b Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 27 Sep 2021 09:30:56 -0700 Subject: Link all modules with json-glib Should address #551. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 595d9cae..2499e7fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,8 +230,8 @@ set_source_files_properties( foreach (_module ${HARDINFO_MODULES}) add_library(${_module} MODULE ${MODULE_${_module}_SOURCES}) set_target_properties(${_module} PROPERTIES PREFIX "") + target_link_libraries(${_module} ${JSON_GLIB_LIBRARIES}) endforeach() -target_link_libraries(benchmark ${JSON_GLIB_LIBRARIES}) find_library(LIBSENSORS_LIBRARY NAMES libsensors.so) if (LIBSENSORS_LIBRARY) -- cgit v1.2.3