-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcpkg-cmake-config] Adapt get_filename_component package prefix for CMake 3.29.1 #38017
Conversation
The script version also needs this otherwise old versions will be broken with newer cmake |
CMake 3.29.1 had a change that broke vcpkg's `vcpkg_cmake_config_fixup` command. This PR updates the port containing the command to adapt to the new behavior. The change will be upstreamed with microsoft/vcpkg#38017. Validated locally. For ease of review, the first commit copies the existing port as-is, and the second commit updates it. Fixes #4857 Fixes TileDB-Inc/TileDB-CSharp#405 Fixes the root cause of TileDB-Inc/conda-forge-nightly-controller#83 --- TYPE: NO_HISTORY
Yes, this PR only fixes the For any port sources that uses the |
CMake 3.29.1 had a change that broke vcpkg's `vcpkg_cmake_config_fixup` command. This PR updates the port containing the command to adapt to the new behavior. The change will be upstreamed with microsoft/vcpkg#38017. Validated locally. For ease of review, the first commit copies the existing port as-is, and the second commit updates it. Fixes #4857 Fixes TileDB-Inc/TileDB-CSharp#405 Fixes the root cause of TileDB-Inc/conda-forge-nightly-controller#83 --- TYPE: NO_HISTORY (cherry picked from commit 690479f)
CMake 3.29.1 had a change that broke vcpkg's `vcpkg_cmake_config_fixup` command. This PR updates the port containing the command to adapt to the new behavior. The change will be upstreamed with microsoft/vcpkg#38017. Validated locally. For ease of review, the first commit copies the existing port as-is, and the second commit updates it. Fixes #4857 Fixes TileDB-Inc/TileDB-CSharp#405 Fixes the root cause of TileDB-Inc/conda-forge-nightly-controller#83 --- TYPE: NO_HISTORY (cherry picked from commit 690479f)
CMake 3.29.1 had a change that broke vcpkg's `vcpkg_cmake_config_fixup` command. This PR updates the port containing the command to adapt to the new behavior. The change will be upstreamed with microsoft/vcpkg#38017. Validated locally. For ease of review, the first commit copies the existing port as-is, and the second commit updates it. Fixes #4857 Fixes TileDB-Inc/TileDB-CSharp#405 Fixes the root cause of TileDB-Inc/conda-forge-nightly-controller#83 --- TYPE: NO_HISTORY
CMake 3.29.2 reverts the change. |
@ras0219, @BillyONeal, @data-queue, @vicroms - Since CMake is going to pursue a different solution for this problem, we shouldn't do this and we should support the new solution. We also need to update to |
CMake 3.29.1 had a change that broke vcpkg's `vcpkg_cmake_config_fixup` command. This PR updates the port containing the command to adapt to the new behavior. The change will be upstreamed with microsoft/vcpkg#38017. Validated locally. For ease of review, the first commit copies the existing port as-is, and the second commit updates it. Fixes #4857 Fixes TileDB-Inc/TileDB-CSharp#405 Fixes the root cause of TileDB-Inc/conda-forge-nightly-controller#83 --- TYPE: NO_HISTORY
Since `CMake` version `3.29.2` reverted [Kitware -CMake - 9390](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9390) in [Kitware - CMake - 9420](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9420), update it. Fix #37968. Take the place of #38017. See [Kitware - CMake - 25873](https://gitlab.kitware.com/cmake/cmake/-/issues/25873) and [Kitware - CMake - 25827](https://gitlab.kitware.com/cmake/cmake/-/issues/25827) Co-authored-by: FrankXie <v-frankxie@microsoft.com>
Since
CMake
version3.29.2
reverted these changes in Kitware - CMake - 9420, closed this issue.See Kitware - CMake - 25873 and Kitware - CMake - 25827
Fix #37968.
Function
vcpkg_cmake_config_fixup
invcpkg-cmake-config
cannot adjust the prefix forCMake
version3.29.1
because the moduleCMakePackageConfigHelpers
altered package configPACKAGE_PREFIX_DIR
to "package name and a global counter" at Kitware - CMake - !9390.Add replacement for new formats to fix it.
Checklist
The "supports" clause reflects platforms that may be fixed by this new version.Any fixed CI baseline entries are removed from that file.Any patches that are no longer applied are deleted from the port's directory../vcpkg x-add-version --all
and committing the result.Test
Port
tinyobjloader
usage tests pass forCMake
version3.29.0
and3.29.1
lib/tinyobjloader/cmake
was moved toshare/tinyobjloader
.get_filename_component
prefix was modified to the correct deepness.3.29.0
,get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
3.29.1
,get_filename_component(PACKAGE_${CMAKE_FIND_PACKAGE_NAME}_COUNTER_1 "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)