• Felix Schwitzer's avatar
    UseSWIG: Do not use MAIN_DEPENDENCY on custom commands (#15480) · b372a99a
    Felix Schwitzer authored
    Add the dependency on the main swig input source file as a normal
    DEPENDS option.  We cannot use MAIN_DEPENDENCY because if there are
    multiple target languages then multiple custom commands would want to
    use the same MAIN_DEPENDENCY, but at most one custom command may specify
    a given source file as its MAIN_DEPENDENCY.  Exposed by a CMP0057
    warning.
    b372a99a
UseSWIG.cmake 12.1 KB