Skip to content

Commit d3bf970

Browse files
committed
Fixup
1 parent b1208da commit d3bf970

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ports/tomlplusplus/portfile.cmake

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ vcpkg_configure_meson(
1818
vcpkg_install_meson()
1919
vcpkg_fixup_pkgconfig()
2020
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tomlplusplus)
21+
# Fiixup link lib name and multi-config
22+
find_library(lib NAMES tomlplusplus PATHS "${CURRENT_PACKAGES_DIR}/lib" NO_DEFAULT_PATH REQUIRED)
23+
cmake_path(GET lib FILENAME name)
24+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/tomlplusplus/tomlplusplusConfig.cmake"
25+
[[(IMPORTED_LOCATION "..PACKAGE_PREFIX_DIR./lib/)[^"]*"]]
26+
" \\1${name}\""
27+
REGEX
28+
)
2129
if(NOT VCPKG_BUILD_TYPE)
2230
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/tomlplusplus/tomlplusplusConfig.cmake"
2331
[[IMPORTED_LOCATION ("..PACKAGE_PREFIX_DIR.)(/lib/[^"]*")]]

versions/t-/tomlplusplus.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"versions": [
33
{
4-
"git-tree": "8aab01b89e43a94362de90ab363e02d187295a97",
4+
"git-tree": "4ecfcc8bd1dc5bd0b70693c483ff12ce7fe83ee4",
55
"version": "3.4.0",
66
"port-version": 1
77
},

0 commit comments

Comments
 (0)