Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add WITH_GRASS_PLUGIN cmake setting to determine whether the GRASS
c++ plugin is built

Allows building the GRASS provider without the plugin
  • Loading branch information
nyalldawson committed May 3, 2023
1 parent 0d0f60a commit f0e5439
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit f0e5439

Please sign in to comment.