ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

Generate pci ids when needed instead of every build #37

Closed DrakkLord closed 4 years ago

DrakkLord commented 4 years ago

This PR changes the PCI ID generation process to generate the hpp only when the source file changes instead of every build which results in constant rebuilding of pci.cpp ( because it uses pci_data.hpp ).

The functionality is the same, the only difference is that the custom target has an attached custom command that can can track the input ( with DEPENDS ) and executes only when the input changes or the output doesn't exist.

nabijaczleweli commented 4 years ago

Thanks!

Released in v0.4.2