Pcbnew: do not include swig/python_scripting.h when compiling without python support.

Fixes #5132
https://gitlab.com/kicad/code/kicad/issues/5132
This commit is contained in:
jean-pierre charras 2020-08-10 11:35:52 +02:00
parent 370bc89d5a
commit 19602b0806
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@
#include <project/net_settings.h>
#include <settings/common_settings.h>
#include <settings/settings_manager.h>
#include <swig/python_scripting.h>
#ifdef KICAD_SCRIPTING
#include <swig/python_scripting.h>
#endif
#include <tool/tool_manager.h>
#include <tool/tool_dispatcher.h>
#include <tool/action_toolbar.h>