File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ vcpkg_configure_meson(
18
18
vcpkg_install_meson()
19
19
vcpkg_fixup_pkgconfig()
20
20
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
+ )
21
29
if (NOT VCPKG_BUILD_TYPE)
22
30
vcpkg_replace_string("${CURRENT_PACKAGES_DIR} /share/tomlplusplus/tomlplusplusConfig.cmake"
23
31
[[IMPORTED_LOCATION ("..PACKAGE_PREFIX_DIR.)(/lib/[^"]*")]]
Original file line number Diff line number Diff line change 1
1
{
2
2
"versions" : [
3
3
{
4
- "git-tree" : " 8aab01b89e43a94362de90ab363e02d187295a97 " ,
4
+ "git-tree" : " 4ecfcc8bd1dc5bd0b70693c483ff12ce7fe83ee4 " ,
5
5
"version" : " 3.4.0" ,
6
6
"port-version" : 1
7
7
},
You can’t perform that action at this time.
0 commit comments