Skip to content

Commit

Permalink
[tomlplusplus] no absolute paths (#21733)
Browse files Browse the repository at this point in the history
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
  • Loading branch information
autoantwort and BillyONeal committed Nov 30, 2021
1 parent 78ab776 commit b158353
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ports/tomlplusplus/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ vcpkg_configure_meson(
)

vcpkg_install_meson()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
cmake_path(NATIVE_PATH SOURCE_PATH native_source_path)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/tomlplusplus/tomlplusplusConfig.cmake" "${native_source_path}" "")
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
Expand Down
10 changes: 8 additions & 2 deletions ports/tomlplusplus/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"name": "tomlplusplus",
"version": "2.5.0",
"port-version": 1,
"port-version": 2,
"description": "Header-only TOML config file parser and serializer for modern C++.",
"homepage": "https://marzer.github.io/tomlplusplus/",
"supports": "!uwp"
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6846,7 +6846,7 @@
},
"tomlplusplus": {
"baseline": "2.5.0",
"port-version": 1
"port-version": 2
},
"tool-meson": {
"baseline": "0.58.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tomlplusplus.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8a772c48d2f8b5d525a1bcad95296bb483194e7a",
"version": "2.5.0",
"port-version": 2
},
{
"git-tree": "be5f558a002098691a82ebb0c86fd19420f4ceaa",
"version": "2.5.0",
Expand Down

0 comments on commit b158353

Please sign in to comment.