goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
130 stars 69 forks source link

Build failure when using vcpkg due to CMake settings #107

Closed rm5248 closed 1 year ago

rm5248 commented 1 year ago

Describe the bug The generated cmake build files have hardcoded paths in them(which does not work with vcpkg). This causes vcpkg to both emit a warning, and any applications that attempt to use libosdp to fail.

Due to how the cmake package files are generated as well, the way to link is not standard compared to other cmake libaries(e.g. there is no libosdp::osdp target to link to).

Expected behavior The library is able to be built and used with vcpkg.

Observed behavior vcpkg complains about hardcoded paths, and the final link of any application that tries to use libosdp does not work.

Additional context This happens on both Linux and Mac.