Open bernhardmgruber opened 2 years ago
This patch is only correct when combined with this line: https://github.com/microsoft/vcpkg/blob/62d01b70df227850b728f5050418b917ad6d2b32/ports/vc/portfile.cmake#L19
Basically, CMake allows a lot of locations for the CMake package to be installed to: https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure. Usually, packagers will have to shift the location around in order to satisfy their own polices or some operating system's policy which may be stricter than CMake in this aspect.
Vc could certainly adopt to install its CMake package to <prefix>/share/vc
by default or to make https://github.com/VcDevel/Vc/blob/d4b8109647d688e7292c150468c9ab7e848f2c54/CMakeLists.txt#L213-L215 configurable via e.g. -DVc_PACKAGE_INSTALL_DESTINATION=...
to ease a package maintainer's life.
vcpkg contains the following patch when building/installing Vc:
If the changes are correct, we should include the patch.