Skip to content

Commit

Permalink
do not build virtual raster without analysis (#44728)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 17, 2021
1 parent 6d66dd2 commit 930df73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/providers/CMakeLists.txt
Expand Up @@ -17,7 +17,9 @@ if (NOT FORCE_STATIC_LIBS)
add_subdirectory(gpx)
add_subdirectory(db2)
add_subdirectory(mdal)
add_subdirectory(virtualraster)
if (WITH_ANALYSIS)
add_subdirectory(virtualraster)
endif()

if (WITH_SPATIALITE)
add_subdirectory(spatialite)
Expand Down
4 changes: 3 additions & 1 deletion tests/src/providers/CMakeLists.txt
Expand Up @@ -41,7 +41,9 @@ add_qgis_test(testqgspostgresconn.cpp MODULE provider LINKEDLIBRARIES provider_p

if (NOT FORCE_STATIC_PROVIDERS)
add_qgis_test(testqgsmdalprovider.cpp MODULE provider LINKEDLIBRARIES qgis_core)
add_qgis_test(testqgsvirtualrasterprovider.cpp MODULE provider LINKEDLIBRARIES qgis_core qgis_analysis)
if (WITH_ANALYSIS)
add_qgis_test(testqgsvirtualrasterprovider.cpp MODULE provider LINKEDLIBRARIES qgis_core qgis_analysis)
endif()
endif()

if (WITH_EPT)
Expand Down

0 comments on commit 930df73

Please sign in to comment.