Skip to content
Snippets Groups Projects
  • Dominic Kempf's avatar
    2ad3e18a
    [cmake] Fix dependency tracking for multiple operators · 2ad3e18a
    Dominic Kempf authored
    CMakes add_custom_command occasionally (undeterministically)
    trips over when multiple files are defined as output. The
    result is unnecessary regeneration upon every change of the
    accompanying C++ source...
    
    The commit fixes the issue by defining one custom command per
    operator. This has the additional pro of generating more verbose
    messages during generation. Implementation wise, CMake needed
    to extract more information from the ini file, so I switched
    to using dune-testtools Python-CMake interface.
    2ad3e18a
    History
    [cmake] Fix dependency tracking for multiple operators
    Dominic Kempf authored
    CMakes add_custom_command occasionally (undeterministically)
    trips over when multiple files are defined as output. The
    result is unnecessary regeneration upon every change of the
    accompanying C++ source...
    
    The commit fixes the issue by defining one custom command per
    operator. This has the additional pro of generating more verbose
    messages during generation. Implementation wise, CMake needed
    to extract more information from the ini file, so I switched
    to using dune-testtools Python-CMake interface.