-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add date * fix build date error * add patch
- Loading branch information
1 parent
f499e52
commit 8044c5d
Showing
5 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
* breakpad | ||
* bzip2 | ||
* capstone | ||
* date | ||
* double-conversion | ||
* fatal | ||
* fbthrift | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) 2024 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
|
||
set(name date) | ||
set(source_dir ${CMAKE_CURRENT_BINARY_DIR}/${name}/source) | ||
ExternalProject_Add( | ||
${name} | ||
URL https://github.com/HowardHinnant/date/archive/refs/tags/v3.0.1.tar.gz | ||
URL_HASH MD5=78902f47f7931a3ae8a320e0dea1f20a | ||
DOWNLOAD_NAME date-3.0.1.tar.gz | ||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/${name} | ||
TMP_DIR ${BUILD_INFO_DIR} | ||
STAMP_DIR ${BUILD_INFO_DIR} | ||
DOWNLOAD_DIR ${DOWNLOAD_DIR} | ||
SOURCE_DIR ${source_dir} | ||
PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/patches/${name}-3.0.1.patch | ||
CMAKE_ARGS | ||
${common_cmake_args} | ||
-DBUILD_TZ_LIB=ON | ||
-DENABLE_DATE_TESTING=OFF | ||
-DBUILD_SHARED_LIBS=ON | ||
-DCMAKE_BUILD_TYPE=Release | ||
BUILD_IN_SOURCE 1 | ||
BUILD_COMMAND make -s -j${BUILDING_JOBS_NUM} | ||
INSTALL_COMMAND make -s -j${BUILDING_JOBS_NUM} install | ||
LOG_CONFIGURE TRUE | ||
LOG_BUILD TRUE | ||
LOG_INSTALL TRUE | ||
) | ||
|
||
ExternalProject_Add_Step(${name} clean | ||
EXCLUDE_FROM_MAIN TRUE | ||
ALWAYS TRUE | ||
DEPENDEES configure | ||
COMMAND make clean -j | ||
COMMAND rm -f ${BUILD_INFO_DIR}/${name}-build | ||
WORKING_DIRECTORY ${source_dir} | ||
) | ||
|
||
ExternalProject_Add_StepTargets(${name} clean) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- CMakeLists.txt 2024-01-05 14:59:42.233660898 +0800 | ||
+++ src/CMakeLists.txt 2024-01-08 14:07:39.058107005 +0800 | ||
@@ -153,8 +153,8 @@ | ||
endif( ) | ||
if( NOT USE_SYSTEM_TZ_DB AND NOT MANUAL_TZ_DB ) | ||
find_package( CURL REQUIRED ) | ||
- target_include_directories( date-tz SYSTEM PRIVATE ${CURL_INCLUDE_DIRS} ) | ||
- target_link_libraries( date-tz PRIVATE ${CURL_LIBRARIES} ) | ||
+ target_include_directories( date-tz SYSTEM PRIVATE ${CURL_DIR}/../../../include ) | ||
+ target_link_libraries( date-tz PRIVATE ${CURL_DIR}/../../../lib ) | ||
endif( ) | ||
endif( ) | ||
|