Skip to content

Commit

Permalink
Move QJSON detection to toplevel CMakeLists, and make it optional, di…
Browse files Browse the repository at this point in the history
…sabling the arcgisrest provider if it was not found
  • Loading branch information
manisandro committed Jun 2, 2016
1 parent 1828563 commit ed2487d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ FIND_PACKAGE(GDAL)
FIND_PACKAGE(Expat REQUIRED)
FIND_PACKAGE(Spatialindex REQUIRED)
FIND_PACKAGE(Qwt REQUIRED)
FIND_PACKAGE(QJSON)

IF (WITH_INTERNAL_QEXTSERIALPORT)
SET(QEXTSERIALPORT_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/core/gps/qextserialport)
Expand Down
2 changes: 2 additions & 0 deletions src/providers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_PLUGIN_SUBDIR})
SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_PLUGIN_SUBDIR})

IF(QJSON_FOUND AND NOT ENABLE_QT5)
ADD_SUBDIRECTORY(arcgisrest)
ENDIF(QJSON_FOUND AND NOT ENABLE_QT5)
ADD_SUBDIRECTORY(memory)
ADD_SUBDIRECTORY(ogr)
ADD_SUBDIRECTORY(wms)
Expand Down
2 changes: 0 additions & 2 deletions src/providers/arcgisrest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
FIND_PACKAGE(QJSON REQUIRED)

INCLUDE_DIRECTORIES(
../../core
../../core/auth
Expand Down

0 comments on commit ed2487d

Please sign in to comment.