cmake/xml2: build xml2 before s3

This commit is contained in:
Minglei Jin 2023-10-24 18:06:19 +08:00
parent f9ca8fe962
commit c67853888f
2 changed files with 13 additions and 9 deletions

View File

@ -1,12 +1,16 @@
# xml2
ExternalProject_Add(xml2
GIT_REPOSITORY https://github.com/GNOME/libxml2
GIT_TAG v2.11.5
URL https://github.com/GNOME/libxml2/archive/refs/tags/v2.11.5.tar.gz
#GIT_REPOSITORY https://github.com/GNOME/libxml2
#GIT_TAG v2.11.5
DOWNLOAD_NO_PROGRESS 1
DOWNLOAD_DIR "${TD_CONTRIB_DIR}/deps-download"
SOURCE_DIR "${TD_CONTRIB_DIR}/xml2"
BINARY_DIR ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
#BINARY_DIR ""
BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND ./autogen.sh && ./configure --prefix=$ENV{HOME}/.cos-local.2 --enable-shared=no --enable-static=yes --without-python
BUILD_COMMAND make -j
INSTALL_COMMAND make install && ln -s $ENV{HOME}/.cos-local.2/include/libxml2/libxml $ENV{HOME}/.cos-local.2/include/libxml
TEST_COMMAND ""
)

View File

@ -261,9 +261,9 @@ target_include_directories(
unset(CMAKE_PROJECT_INCLUDE_BEFORE)
# xml2
if(${BUILD_WITH_S3})
add_subdirectory(xml2 EXCLUDE_FROM_ALL)
endif()
#if(${BUILD_WITH_S3})
# add_subdirectory(xml2 EXCLUDE_FROM_ALL)
#endif()
# lz4
add_subdirectory(lz4/build/cmake EXCLUDE_FROM_ALL)