kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #27254
Re: cmake python fix_swig_imports
Hmm, good catch. I habe been annoyed by this for a very long time as well.
I am not on a proper machine now, but maybe some digging in the commit logs
and blame can help you deduce if this is intentional or not.
Den 18/01/2017 17.46 skrev "Simon Wells" <swel024@xxxxxxxxx>:
> Due to still getting
>
> pcbnew/CMakeFiles/_pcbnew.dir/build.make:125: warning: overriding
> commands for target `pcbnew/pcbnew.py'
> pcbnew/CMakeFiles/_pcbnew.dir/build.make:89: warning: ignoring old
> commands for target `pcbnew/pcbnew.py'
>
> warnings during build on osx i have been trying to work out what is
> causing this issue and found that we have duplicated
>
> COMMAND ${PYTHON_EXECUTABLE}
> ${CMAKE_SOURCE_DIR}/scripting/build_tools/fix_swig_imports.py
> ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
>
> once on line 412 and again on line 745 in pcbnew/CMakeLists.txt
>
> one of these is in KICAD_SCRIPTING conditional and the other is in
> KICAD_SCRIPTING_MODULES conditional, however as you can't have MODULES
> without SCRIPTING they seem redundant however i don't understand
> enough about the swig system to just delete it and provide a patch.
>
> Are there any swigheads who understand enough to say whether removing
>
> add_custom_target( FixSwigImportsModuleScripting ALL
> COMMAND ${PYTHON_EXECUTABLE}
> ${CMAKE_SOURCE_DIR}/scripting/build_tools/fix_swig_imports.py
> ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
> DEPENDS _pcbnew
> COMMENT "Fixing swig_import_helper in Kicad scripting modules"
> )
>
> is a bad idea?
>
> thanks
>
> Simon
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
References