Don't install Python shell when wxPython support is disabled.

Fixes lp:1760200

https://bugs.launchpad.net/kicad/+bug/1760200
This commit is contained in:
Mario Hros 2018-04-07 23:15:13 +02:00 committed by Wayne Stambaugh
parent cb2c447c23
commit efa2a13eaa
1 changed files with 6 additions and 4 deletions

View File

@ -746,10 +746,12 @@ if( KICAD_SCRIPTING )
)
# python shell
install( DIRECTORY ${PROJECT_SOURCE_DIR}/pcbnew/python/kicad_pyshell/
DESTINATION ${KICAD_DATA}/scripting/kicad_pyshell
FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
)
if ( KICAD_SCRIPTING_WXPYTHON )
install( DIRECTORY ${PROJECT_SOURCE_DIR}/pcbnew/python/kicad_pyshell/
DESTINATION ${KICAD_DATA}/scripting/kicad_pyshell
FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
)
endif()
endif()