Skip to content

Commit

Permalink
Fix Ubuntu 18.04 build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Aug 16, 2022
1 parent 7f5ded8 commit a7954b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/updateinformation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
find_package(nlohmann_json REQUIRED)

# compatibility with Ubuntu 18.04's nlohmann-json-dev
if(TARGET nlohmann_json AND NOT TARGET nlohmann_json::nlohmann_json)
add_library(nlohmann_json::nlohmann_json ALIAS nlohmann_json)
endif()

add_library(updateinformation STATIC
AbstractUpdateInformation.cpp
GenericZsyncUpdateInformation.cpp
Expand Down

0 comments on commit a7954b6

Please sign in to comment.