Make the wxWidgets toolkit test Linux specific

Other platforms (Windows, macOS) have only one base toolkit,
so there is no mismatch risk.
This commit is contained in:
Maciej Suminski 2018-02-21 11:44:32 +01:00
parent 644190301f
commit dd04bcbcbf
1 changed files with 2 additions and 1 deletions

View File

@ -706,7 +706,8 @@ if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES )
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if( NOT wxWidgets_TOOLKIT_FOUND STREQUAL WXPYTHON_TOOLKIT_FOUND )
# Check if wxWidgets toolkits match, it is a Linux-only issue
if( UNIX AND NOT APPLE AND NOT wxWidgets_TOOLKIT_FOUND STREQUAL WXPYTHON_TOOLKIT_FOUND )
message( FATAL_ERROR "\nwxWidgets and wxPython use different toolkits "
"(${wxWidgets_TOOLKIT_FOUND} vs ${WXPYTHON_TOOLKIT_FOUND}). "
"It will result in a broken build. Please either install wxPython built using "