mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 20:29:00 +08:00
95d4d067f0
* Fix vcpkg_cmake_config_fixup.cmake The PR #22235 exposed a bug in `vcpkg_cmake_config_fixup.cmake`, that incorrectly preprends a string without a end-of-line. That creates CMake syntax errors, like this one: ``` get_filename_component(VCPKG_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)set(CGAL_ROOT ${VCPKG_IMPORT_PREFIX}) ``` The fix is simple: add a `\n` at the end of the prepended string. * format manifest * Update versions |
||
---|---|---|
.. | ||
copyright | ||
portfile.cmake | ||
README.md | ||
vcpkg_cmake_config_fixup.cmake | ||
vcpkg-port-config.cmake | ||
vcpkg.json |
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.