mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
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:
parent
50aa9d43cf
commit
ac6732db42
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user