strukturag / libde265

Open h.265 video codec implementation.
Other
1.7k stars 457 forks source link

cmake: Configure de265-version.h file into source dir and remove duplicate install line #371

Closed frmdstryr closed 1 year ago

frmdstryr commented 1 year ago

When using cmake, the configured version header is being installed twice from different locations causing install to fail. I'm on linux but also see a similar report for windows here https://github.com/strukturag/libde265/issues/278.

This is because de265-version.h is included in the libde265_headers variable and there is a second install statement for the version file from the build directory.

This changes the CMakeLists so it generates into the source dir first, then the install libde265_headers line does the rest.

Alternatively it could append the version.h to the headers list after the first install is run.