Skip to content
Permalink
Browse files
add WITH_BINDINGS definition only in app (#43298)
this will avoid a complete rebuild when switching on/off the option
  • Loading branch information
3nids committed May 20, 2021
1 parent 50aa9d4 commit ac6732db42e8f0db8305b00a616430bd310c0360
Showing with 1 addition and 1 deletion.
  1. +0 −1 CMakeLists.txt
  2. +1 −0 src/app/CMakeLists.txt
@@ -173,7 +173,6 @@ if(WITH_CORE)
# keep casual users from updating their source tree via WITH_QSCIAPI
mark_as_advanced (WITH_QSCIAPI)
endif()
add_definitions(-DWITH_BINDINGS)
endif()

# server disabled default because it needs FastCGI (which is optional dependency)
@@ -525,6 +525,7 @@ target_link_libraries(qgis_app
target_compile_definitions(qgis_app PRIVATE "-DQT_NO_FOREACH")

if (WITH_BINDINGS)
add_definitions(-DWITH_BINDINGS)
target_link_libraries(qgis_app qgispython)
endif()

0 comments on commit ac6732d

Please sign in to comment.