[dlfcn-win32] Fix install failure when build type is set to release (#28172)

* [dlfcn-win32] Fix install failure when build type is set to release

* [dlfcn-win32] Update port version

* [dlfcn-win32] Use vcpkg_fixup_cmake_targets

* [dlfcn-win32] Update port version

* [dlfcn-win32] Use vcpkg_cmake_config_fixup instead deprecated vcpkg_fixup_cmake_targets

* [dlfcn-win32] Update port version
This commit is contained in:
tdcosta100 2022-12-06 17:55:10 -03:00 committed by GitHub
parent 942b65939d
commit 9792dd9e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

View File

@ -14,16 +14,12 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
file(READ "${CURRENT_PACKAGES_DIR}/debug/share/dlfcn-win32/dlfcn-win32-targets-debug.cmake" dlfcn-win32_DEBUG_MODULE)
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" dlfcn-win32_DEBUG_MODULE "${dlfcn-win32_DEBUG_MODULE}")
file(WRITE "${CURRENT_PACKAGES_DIR}/share/dlfcn-win32/dlfcn-win32-targets-debug.cmake" "${dlfcn-win32_DEBUG_MODULE}")
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)

View File

@ -1,6 +1,7 @@
{
"name": "dlfcn-win32",
"version": "1.3.1",
"port-version": 1,
"description": "dlfcn-win32 is an implementation of dlfcn for Windows.",
"homepage": "https://github.com/dlfcn-win32/dlfcn-win32",
"license": "MIT",
@ -9,6 +10,10 @@
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1982,7 +1982,7 @@
},
"dlfcn-win32": {
"baseline": "1.3.1",
"port-version": 0
"port-version": 1
},
"dlib": {
"baseline": "19.24",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "39fcef74b0e249a6e49b28eb8b4be8d1f6bc3d54",
"version": "1.3.1",
"port-version": 1
},
{
"git-tree": "eefd0e5c4b4d59e8bfb88842e9562115cb77d078",
"version": "1.3.1",