mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 23:19:01 +08:00
2507e0e707
* [log4cxx] Update to 1.0.0 * [log4cxx] Update versions * Remove redundent version Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update versions --------- Co-authored-by: Stephen Webb <swebb2066@gmail.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
38 lines
1.3 KiB
CMake
38 lines
1.3 KiB
CMake
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 a6b928d7b5b4fb60a67504be082f436a6d1a750b752a89df51d0660670b6c008e7376cf56c1749fd5fc17777ae8a2d957f72879c9a89487ecb0f179999dc1283
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH ARCHIVE "${ARCHIVE}"
|
|
)
|
|
|
|
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)
|