Add WITH_GRASS_PLUGIN cmake setting to determine whether the GRASS

c++ plugin is built

Allows building the GRASS provider without the plugin
This commit is contained in:
Nyall Dawson 2023-05-02 10:31:22 +10:00
parent 0d0f60a2cd
commit f0e54391d3

View File

@ -14,7 +14,10 @@ if (WITH_SPATIALITE)
endif()
if (GRASS_FOUND)
add_subdirectory(grass)
set (WITH_GRASS_PLUGIN TRUE CACHE BOOL "Determines whether the GRASS c++ plugin should be built")
if (WITH_GRASS_PLUGIN)
add_subdirectory(grass)
endif()
endif()
if (CUSTOM_PLUGINS)