mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 21:29:00 +08:00
aed77722f8
* [log4cxx] Update to 0.13.0 * [log4cxx] Update to 0.13.0 * [log4cxx] Add license id * [log4cxx] Add license id * [log4cxx] Add license id * [log4cxx] Add license id * [log4cxx] Fix compilation error in static build * Fix compilation error in a static build * Fix compilation error in a static build * Fix compilation error in a static build * [log4cxx] Update to 0.13.0 * update version * update portfile.cmake * update version * update vcpkg_extract_source_archive * update evrsion Co-authored-by: Stephen Webb <stephen.webb@sabreautonomous.com.au> Co-authored-by: Jonliu1993 <13720414433@163.com>
43 lines
1.4 KiB
CMake
43 lines
1.4 KiB
CMake
set(VERSION 0.13.0)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://archive.apache.org/dist/logging/log4cxx/${VERSION}/apache-log4cxx-${VERSION}.tar.gz"
|
|
FILENAME "apache-log4cxx-${VERSION}.tar.gz"
|
|
SHA512 2a5f4fecc0415d942658c588774f0666082c497b6fd49bf64ab3328a997775206788c9b10a8c89208896c57da52fcc12c18d5d11ca1d3bf699e4633b8fcea6e5
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH ARCHIVE "${ARCHIVE}"
|
|
PATCHES
|
|
expat.patch
|
|
threadutility.patch
|
|
linux.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DLOG4CXX_INSTALL_PDB=OFF # Installing pdbs failed on debug static. So, disable it and let vcpkg_copy_pdbs() do it
|
|
-DBUILD_TESTING=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/log4cxx)
|
|
|
|
if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
|
vcpkg_fixup_pkgconfig()
|
|
endif()
|
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/${PORT}/log4cxxConfig.cmake" _contents)
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/log4cxxConfig.cmake"
|
|
"include(CMakeFindDependencyMacro)
|
|
find_dependency(expat CONFIG)
|
|
${_contents}"
|
|
)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|