vcpkg/ports/vcpkg-cmake-config
Phoebe 77967a6228
[vcpkg-cmake-config] fix up cmake_current_packages_dir (#20439)
* [vcpkg-cmake-config] fix up cmake_current_packages_dir

* Small changes

* Address the review suggestion

* Update ports/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake

* Update the baseline version

* Address the review suggestions

* Address the review suggestions

* fix up VCPKG_IMPORT_PREFIX if the file being modified at a deep subpath

* Fix regressions

* Remove out of date comments about multiconfig generators that are no longer relevant, fix spelling errors, and avoid calculating relative paths for the definition of VCPKG_IMPORT_PREFIX when not used.

* Fix version database.

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-12-09 14:24:16 -08:00
..
copyright
portfile.cmake
README.md
vcpkg_cmake_config_fixup.cmake [vcpkg-cmake-config] fix up cmake_current_packages_dir (#20439) 2021-12-09 14:24:16 -08:00
vcpkg-port-config.cmake
vcpkg.json [vcpkg-cmake-config] fix up cmake_current_packages_dir (#20439) 2021-12-09 14:24:16 -08:00

vcpkg-cmake-config

vcpkg-cmake-config provides vcpkg_cmake_config_fixup(), a function which both:

  • Fixes common mistakes in port build systems, like using absolute paths
  • Merges the debug and release config files.

This function should almost always be used when a port has *config.cmake files, even when the buildsystem of the project is not CMake.