pololu / libusbp

The Pololu USB Library (also known as libusbp) is a cross-platform C library for accessing USB devices.
Other
106 stars 34 forks source link

Fix compile issue when used as submodule #17

Closed bruce87en closed 3 months ago

bruce87en commented 3 months ago

Fix compile issue when used as submodule: 1.Modify BUILD_SHARED_LIBS to BUILD_LIBUSBP_SHARED_LIBS to avoid potential conflicts. 2.Modify the header file include path relative to the current CMakeLists.txt to avoid compilation errors caused by the top-level project not being libusbp.