HappySeaFox / sail

The missing small and fast image decoding library for humans (not for machines) ⛵ https://sail.software
MIT License
311 stars 25 forks source link

including sail.h when using vcpkg #193

Closed Murk42 closed 1 year ago

Murk42 commented 1 year ago

When using vcpkg to manage the sail library, including sail looks like: #include <sail/sail/sail.h (notice the two "sail/" folders) This leads to compiler errors in the sail.h file because it cannot open include file notifying us that it cant find them. I found a temporary fix by moving the "include/sail/sail" folder to "include/" and therefore I can simply do #include <sail/sail.h> and there aren't any errors anymore.

HappySeaFox commented 1 year ago

Please see https://github.com/HappySeaFox/sail/issues/75

TL;DR Use CMake integration or add VcpkgInstalledDir/include/sail to the project include path. CMake does that automatically.

Murk42 commented 1 year ago

Thank you for the quick response!