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:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user