Skip to content

Commit

Permalink
Fix build with system JSON library (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamarituc authored Apr 12, 2024
1 parent 966ed85 commit 54b03cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions indi-qhy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ find_package(Nova REQUIRED)
find_package(USB1 REQUIRED)
find_package(Threads REQUIRED)

if(INDI_JSONLIB)
set(JSONLIB "")
message(STATUS "Using indi bundled json library")
else(INDI_JSONLIB)
find_package(nlohmann_json REQUIRED)
add_definitions(-D_USE_SYSTEM_JSONLIB)
set(JSONLIB nlohmann_json::nlohmann_json)
message(STATUS "Using system provided Niels Lohmann's json library")
endif(INDI_JSONLIB)

set(INDI_QHY_VERSION_MAJOR 2)
set(INDI_QHY_VERSION_MINOR 8)

Expand Down

0 comments on commit 54b03cf

Please sign in to comment.