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:
parent
b5b76eedf7
commit
ef96374eec
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue