-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[ntuples] Add header-only C++ ntuples library 0.1.2 added port of NTUPLES library #46932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
6748968
b6a69b3
cc4cda3
e165cb5
f0f2a0d
7f5a070
a6b07b4
5de9cd3
92da8e3
1f5086b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,46 @@ | ||||||
|
|
||||||
|
|
||||||
| vcpkg_from_github( | ||||||
| OUT_SOURCE_PATH SOURCE_PATH | ||||||
| REPO RPeschke/ntuples | ||||||
| REF v0.1.2 | ||||||
|
|
||||||
| SHA512 0cd390e79640f0b03b5ac7b58ab52996a0a69f13cd52b404acf06601c2cf5788fe6ef8c082c35ed734fa4094a0b9543a6c07a1f6deaffd8a69475abbae7268dc | ||||||
| ) | ||||||
|
|
||||||
| # 1) Install headers (copy contents of core/include into <pkg>/include) | ||||||
| file(INSTALL "${SOURCE_PATH}/core/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include") | ||||||
|
|
||||||
| # 2) Install a relocatable CMake config so find_package(ntuples CONFIG) works | ||||||
| file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/ntuples") | ||||||
| file(WRITE "${CURRENT_PACKAGES_DIR}/share/ntuples/ntuples-config.cmake" " | ||||||
| if (TARGET ntuples::ntuples) | ||||||
| return() | ||||||
| endif() | ||||||
| get_filename_component(_IMPORT_PREFIX \"\${CMAKE_CURRENT_LIST_DIR}/../..\" ABSOLUTE) | ||||||
| add_library(ntuples INTERFACE) | ||||||
| add_library(ntuples::ntuples ALIAS ntuples) | ||||||
| target_include_directories(ntuples INTERFACE \"\${_IMPORT_PREFIX}/include\") | ||||||
| target_compile_features(ntuples INTERFACE cxx_std_20) | ||||||
|
||||||
| target_compile_features(ntuples INTERFACE cxx_std_20) | |
| target_compile_features(ntuples INTERFACE cxx_std_17) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I am sorry but it will not compile with c++17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sorry but it will not compile with c++17
I see, in that case upstream should be fixed so that we aren't randomly doing something different than upstream. (Doesn't mean upstream needs to change before we would merge this, just that we would want upstream's approval before doing something different)
I made the original comment and pushed the change without realizing that you were also the upstream maintainer 😅. You should probably fix that and remove the attempt to set CMAKE_CXX_STANDARD.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "name": "ntuples", | ||
| "version": "0.1.2", | ||
| "description": "A C++ ntuple library for structured data storage and processing", | ||
| "homepage": "https://github.com/RPeschke/ntuples", | ||
| "license": "MIT", | ||
| "dependencies": [ | ||
| "vcpkg-cmake", | ||
| "vcpkg-cmake-config" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be host dependencies. |
||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "5527c55fa416fa094102fc108ce0157d5fc062c4", | ||
| "version": "0.1.2", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.