Skip to content

Commit d9cd853

Browse files
committed
kagome-crates fixup
1 parent 2389507 commit d9cd853

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

src/crypto/ed25519.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <schnorrkel_crust.h>
7+
#include <schnorrkel/schnorrkel.h>
88
#include <qtils/bytes.hpp>
99

1010
namespace jam::crypto::ed25519 {

test-vectors/disputes/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
find_package(schnorrkel_crust CONFIG REQUIRED)
7+
find_package(qdrvm-crates CONFIG REQUIRED)
88

99
add_test_vector(disputes tiny full)
1010

1111
add_test_vector_libraries(disputes
1212
PkgConfig::libb2
13-
schnorrkel_crust::schnorrkel_crust
13+
schnorrkel::schnorrkel
1414
)
1515

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
22
vcpkg_from_github(
3-
OUT_SOURCE_PATH SOURCE_PATH
4-
REPO qdrvm/kagome-crates
5-
REF c4a2c5ea9c7b2fda8623066591593a35dc47b927
6-
SHA512 1c5ae38aa64ac4dca2c37f950785bfdc588127cf2d2a2386744dee911983c7d3944c3d441d709c7eaaa39e41f6786a2b8f11d86b315805c7d4f443533a8e3fac
3+
OUT_SOURCE_PATH SOURCE_PATH
4+
REPO qdrvm/kagome-crates
5+
REF c4a2c5ea9c7b2fda8623066591593a35dc47b927
6+
SHA512 1c5ae38aa64ac4dca2c37f950785bfdc588127cf2d2a2386744dee911983c7d3944c3d441d709c7eaaa39e41f6786a2b8f11d86b315805c7d4f443533a8e3fac
7+
HEAD_REF main
78
)
9+
810
vcpkg_cmake_configure(
911
SOURCE_PATH "${SOURCE_PATH}"
1012
OPTIONS
1113
-DQDRVM_BIND_CRATES=schnorrkel;bandersnatch_vrfs
1214
)
13-
vcpkg_cmake_install()
1415

15-
# Rename the share directory to match the package name qdrvm-crates
16-
file(RENAME
17-
"${CURRENT_PACKAGES_DIR}/share/kagome-crates"
18-
"${CURRENT_PACKAGES_DIR}/share/qdrvm-crates"
19-
)
16+
vcpkg_cmake_build()
2017

21-
# The config file is actually created with this name
22-
file(RENAME
23-
"${CURRENT_PACKAGES_DIR}/share/qdrvm-crates/kagome-crates-config.cmake"
24-
"${CURRENT_PACKAGES_DIR}/share/qdrvm-crates/qdrvm-cratesConfig.cmake"
25-
)
18+
vcpkg_cmake_install()
2619

2720
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2821
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
22+
23+
# Use vcpkg_cmake_config_fixup to properly move config files
24+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/qdrvm-crates PACKAGE_NAME qdrvm-crates)
25+
26+
# Remove any remaining empty lib/cmake/qdrvm-crates directory
27+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
2928
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")

0 commit comments

Comments
 (0)