Skip to content

Commit

Permalink
Fix problem with json-c detection in the build system
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Niethammer <[email protected]>
  • Loading branch information
cniethammer committed Oct 17, 2024
1 parent 91c52fb commit ba1fef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(json-c CONFIG)
target_link_libraries(mpi-extensions PRIVATE json-c::json-c)

target_sources(mpi-extensions
Expand Down

0 comments on commit ba1fef4

Please sign in to comment.