Skip to content

Commit

Permalink
install nlohmann/json_fwd.hpp if using WITH_INTERNAL_NLOHMANN_JSON (f…
Browse files Browse the repository at this point in the history
…ollowup c268fb1)
  • Loading branch information
jef-n authored and nyalldawson committed Jul 15, 2024
1 parent a56f708 commit ba2ff0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debian/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Build-Depends:
libsqlite3-dev,
libsqlite3-mod-spatialite,
libzip-dev,
nlohmann-json3-dev,
ninja-build,
ocl-icd-opencl-dev,
opencl-headers,
Expand Down Expand Up @@ -287,6 +288,7 @@ Depends:
libqt5webkit5-dev,
libqwt-qt5-dev,
libsqlite3-dev,
nlohmann-json3-dev,
pyqt5-dev-tools,
pyqt5.qsci-dev,
python3-dev,
Expand Down
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ PYTHON_LIBRARY=$(shell python3-config --ldflags --embed | sed -e 's,-L\(.*\) -L[
CMAKE_OPTS := \
-G Ninja \
-DBUILDNAME=$(DEB_BUILD_NAME) \
-DWITH_INTERNAL_NLOHMANN_JSON=OFF \
-DCMAKE_VERBOSE_MAKEFILE=1 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBINDINGS_GLOBAL_INSTALL=TRUE \
Expand Down
4 changes: 4 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2420,6 +2420,10 @@ endif()

if(NOT APPLE OR NOT QGIS_MACAPP_FRAMEWORK)
install(FILES ${QGIS_CORE_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})

if(WITH_INTERNAL_NLOHMANN_JSON)
install(FILES ${CMAKE_SOURCE_DIR}/external/nlohmann/json_fwd.hpp DESTINATION ${QGIS_INCLUDE_DIR}/nlohmann)
endif()
else()

set_target_properties(qgis_core PROPERTIES
Expand Down

0 comments on commit ba2ff0c

Please sign in to comment.