From 87091b07c7a41635b00b304efc35be60baafbe2e Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Thu, 17 Oct 2024 17:03:34 +0200 Subject: [PATCH] Fix problem with json-c detection in the build system Signed-off-by: Christoph Niethammer --- CMakeLists.txt | 2 ++ src/CMakeLists.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae3dcc6..a6fb1a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ project(mpi-extensions) find_package(MPI REQUIRED) include_directories( ${MPI_C_INCLUDE_DIRS} ) +find_package(json-c REQUIRED) + include(CTest) add_library(mpi-extensions SHARED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 542b595..b7ec7ed 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,3 @@ -find_package(json-c CONFIG) target_link_libraries(mpi-extensions PRIVATE json-c::json-c) target_sources(mpi-extensions