mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 15:07:51 +08:00
8ead9c2674
* [many ports]switch to vcpkg-cmake / vckg-cmake-config part 3 * version * typo * version * typo * version * Fix params * version * deprecated vcpkg_extract_source_archive_ex * version * fix arguments * version * Rename argument * version * Deprecate vcpkg_extract_source_archive_ex * version --------- Co-authored-by: jyu49 <yu_jack@apple.com>
36 lines
974 B
CMake
36 lines
974 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO orocos-toolchain/log4cpp
|
|
REF v2.9.1
|
|
SHA512 5bd222c820a15c5d96587ac9fe864c3e2dc0fbce8389692be8dd41553ac0308002ad8d6f4ef3ef10af1d796f8ded410788d1a5d22f15505fac639da3f73e3518
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-install-targets.patch
|
|
Fix-StaticSupport.patch
|
|
fix-includepath.patch
|
|
fix-export-targets.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/${PORT})
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
configure_file(
|
|
"${CMAKE_CURRENT_LIST_DIR}/log4cpp-config.in.cmake"
|
|
"${CURRENT_PACKAGES_DIR}/share/${PORT}/log4cpp-config.cmake"
|
|
@ONLY
|
|
)
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|