add WITH_BINDINGS definition only in app (#43298)

this will avoid a complete rebuild when switching on/off the option
This commit is contained in:
Denis Rouzaud 2021-05-20 18:17:12 +02:00 committed by GitHub
parent 50aa9d43cf
commit ac6732db42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -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)

View File

@ -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()