mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:59:02 +08:00
5c2f1f81e5
Fixes the headers being installed under `vlfeat/` instead of `vl/` by the custom CMakeLists.txt. The project docs use `#include <vl/...>` (https://www.vlfeat.org/api/kmeans.html) and so does the Debian package (https://packages.debian.org/sid/amd64/libvlfeat-dev/filelist), for example. I also included a patch from Debian to fix OpenMP support and exposed OpenMP as an optional feature. Related to #39354.
12 lines
372 B
Diff
12 lines
372 B
Diff
--- a/vl/kmeans.c
|
|
+++ b/vl/kmeans.c
|
|
@@ -669,7 +669,7 @@ VL_XCAT(_vl_kmeans_quantize_, SFX)
|
|
|
|
#ifdef _OPENMP
|
|
#pragma omp parallel default(none) \
|
|
- shared(self, distances, assignments, numData, distFn, data) \
|
|
+ shared(self, distances, assignments, numData, distFn, data, vl_infinity_d) \
|
|
num_threads(vl_get_max_threads())
|
|
#endif
|
|
{
|