Skip to content

Commit

Permalink
[dmlc] update
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Oct 27, 2022
1 parent c72cefb commit 826c1f4
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 14 deletions.
12 changes: 12 additions & 0 deletions ports/dmlc/cxx-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 46aa280..f66b286 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,6 +59,7 @@ if(USE_AZURE)
endif()

add_library(dmlc ${SOURCE})
+target_compile_features(dmlc PUBLIC cxx_std_${CMAKE_CXX_STANDARD})

# Sanitizer
if (DMLC_USE_SANITIZER)
21 changes: 11 additions & 10 deletions ports/dmlc/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO dmlc/dmlc-core
REF d3fd7c5e9b9c280d3081ada3fb62705547c00bf1
SHA512 6887d52ddd00949866c27bea3c860abb8a7ecf61feeac79d67d260635e9c3e490b6f0538cbc0ccc1f03e90ab4094bfc0fcb938adb3fb5afe9fea813d47cc7430
HEAD_REF master
REF dfd9365264a060a5096734b7d892e1858b6d2722
SHA512 0dc2ecd3c981d88de27bf5184f7b380261335c474934d0db59028adfe75f6b3ee2da5b831135acfaad7943acb3eaa7007c0faf0f14e63b39865354898f64fcea
HEAD_REF main
PATCHES
cxx-fix.patch # from https://github.com/dmlc/dmlc-core/pull/676
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand All @@ -19,20 +21,19 @@ else()
set(DMLC_FORCE_SHARED_CRT OFF)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DDMLC_FORCE_SHARED_CRT=${DMLC_FORCE_SHARED_CRT}
-DUSE_OPENMP=${ENABLE_OPENMP}
)

vcpkg_install_cmake()
vcpkg_cmake_install()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/dmlc)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/dmlc)

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
14 changes: 12 additions & 2 deletions ports/dmlc/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
{
"name": "dmlc",
"version-date": "2019-08-12",
"port-version": 7,
"version-date": "2022-06-22",
"description": "DMLC-Core is the backbone library to support all DMLC projects, offers the bricks to build efficient and scalable distributed machine learning libraries.",
"homepage": "https://github.com/dmlc/dmlc-core",
"license": "Apache-2.0",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"openmp": {
"description": "Build with openmp"
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1989,8 +1989,8 @@
"port-version": 2
},
"dmlc": {
"baseline": "2019-08-12",
"port-version": 7
"baseline": "2022-06-22",
"port-version": 0
},
"docopt": {
"baseline": "2018-11-01",
Expand Down
5 changes: 5 additions & 0 deletions versions/d-/dmlc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "23dbee1949340c7bc6377d1acb7007faf7ba2247",
"version-date": "2022-06-22",
"port-version": 0
},
{
"git-tree": "2d1ce501d0c9ed32e6de5f73290635b259f67364",
"version-date": "2019-08-12",
Expand Down

0 comments on commit 826c1f4

Please sign in to comment.