mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 22:28:59 +08:00
9792dd9e15
* [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
26 lines
652 B
CMake
26 lines
652 B
CMake
set(SOURCE_VERSION 1.3.1)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO dlfcn-win32/dlfcn-win32
|
|
REF v${SOURCE_VERSION}
|
|
SHA512 0aa01c49ee8628c42cdc8b9782b4741a36502764d4442227ea4e9a8062356ff17e8eaa3cdd4113009ad7ad2044b6cfd24128319d71825e13062259dd1906e27e
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
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)
|