Skip to content

Commit

Permalink
disable feature earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 24, 2021
1 parent 144098b commit 437b3ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/CMakeLists.txt
Expand Up @@ -151,6 +151,10 @@ if((${PYQT5_VERSION_STR} VERSION_EQUAL 5.15) OR (${PYQT5_VERSION_STR} VERSION_GR
set(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} VECTOR_MAPPED_TYPE)
endif()

if(NOT WITH_GUI)
set(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_GUI)
endif()

GENERATE_SIP_PYTHON_MODULE_CODE(qgis._core core/core.sip "${sip_files_core}" cpp_files)
BUILD_SIP_PYTHON_MODULE(qgis._core core/core.sip ${cpp_files} "" qgis_core)
set(SIP_CORE_CPP_FILES ${cpp_files})
Expand Down Expand Up @@ -194,8 +198,6 @@ if (WITH_GUI)

GENERATE_SIP_PYTHON_MODULE_CODE(qgis._gui gui/gui.sip "${sip_files_gui}" cpp_files)
BUILD_SIP_PYTHON_MODULE(qgis._gui gui/gui.sip ${cpp_files} "" qgis_core qgis_gui)
else()
set(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_GUI)
endif()

# 3D module
Expand Down

0 comments on commit 437b3ef

Please sign in to comment.