Fix an issue with KICAD_SCRIPTING_WXPYTHON=OFF on Linux.

Previously, with KICAD_SCRIPTING_WXPYTHON=OFF, a test using WXPYTHON_TOOLKIT was made.
This commit is contained in:
jean-pierre charras 2021-06-03 11:13:29 +02:00
parent b5b76eedf7
commit ef96374eec
1 changed files with 1 additions and 1 deletions

View File

@ -830,7 +830,7 @@ if( KICAD_SCRIPTING_WXPYTHON )
endif()
# GTK3 is required on Linux
if( UNIX AND NOT APPLE )
if( UNIX AND NOT APPLE AND KICAD_SCRIPTING_WXPYTHON )
if( NOT "${WXPYTHON_TOOLKIT}" STREQUAL "gtk3" )
message( FATAL_ERROR "GTK3-based wxPython/Phoenix toolkit is required.")
endif()