Skip to content
  • Ben Webb's avatar
    FindSWIG: Do not generate erroneous outputs with -noproxy · 96a8890c
    Ben Webb authored and Brad King's avatar Brad King committed
    Generally for a module foo, SWIG generates (in Python mode)
    an extension module _foo.so and a proxy Python module foo.py.
    However, if -noproxy is specified, instead it builds only foo.so
    (without the leading underscore). The custom command generated
    by CMake correctly handles the removal of this underscore when
    -noproxy is given; however, it still adds foo.py to the expected
    outputs. This upsets build tools that expect foo.py to be generated
    (for example, 'make' will run the SWIG command twice). Fix this
    by removing foo.py from the set of extra generated files when
    -noproxy is specified.
    96a8890c