File tree Expand file tree Collapse file tree 7 files changed +71
-42
lines changed Expand file tree Collapse file tree 7 files changed +71
-42
lines changed Original file line number Diff line number Diff line change @@ -600,8 +600,8 @@ hunter_default_version(xrandr VERSION 1.3.2)
600600hunter_default_version(xrender VERSION 0.9.7)
601601hunter_default_version(xshmfence VERSION 1.3)
602602hunter_default_version(xtrans VERSION 1.4.0)
603+ hunter_default_version(xxHash VERSION 0.8.2)
603604hunter_default_version(xxf86vm VERSION 1.1.2)
604- hunter_default_version(xxhash VERSION 0.6.5-p0)
605605hunter_default_version(yaml-cpp VERSION 0.6.3)
606606hunter_default_version(zip VERSION 0.1.15)
607607hunter_default_version(zlog VERSION 1.2.14)
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2016-2018, Ruslan Baratov
2+ # All rights reserved.
3+
4+ # !!! DO NOT PLACE HEADER GUARDS HERE !!!
5+
6+ include (hunter_add_version)
7+ include (hunter_cacheable)
8+ include (hunter_cmake_args)
9+ include (hunter_download)
10+ include (hunter_pick_scheme)
11+ include (hunter_source_subdir)
12+
13+ hunter_add_version(
14+ PACKAGE_NAME
15+ xxHash
16+ VERSION
17+ 0.6.5-p0
18+ URL
19+ "https://github.com/hunter-packages/xxHash/archive/0.6.5-p0.tar.gz"
20+ SHA1
21+ 7d84575a45360d5c5c075ceb3fc1eb6b334aa5a4
22+ )
23+
24+ hunter_add_version(
25+ PACKAGE_NAME
26+ xxHash
27+ VERSION
28+ 0.8.2
29+ URL
30+ "https://github.com/Cyan4973/xxHash/archive/v0.8.2.tar.gz"
31+ SHA1
32+ 8df702581ebc48a5e05be0f1ede6e1e9139e4da1
33+ )
34+
35+ if (HUNTER_xxHash_VERSION VERSION_GREATER_EQUAL 0.8.2)
36+ hunter_source_subdir(
37+ xxHash
38+ SOURCE_SUBDIR "cmake_unofficial"
39+ )
40+
41+ hunter_cmake_args(
42+ xxHash
43+ CMAKE_ARGS
44+ XXHASH_BUILD_XXHSUM=OFF
45+ )
46+ endif ()
47+
48+ hunter_pick_scheme(DEFAULT url_sha1_cmake)
49+ hunter_cacheable(xxHash)
50+ hunter_download(PACKAGE_NAME xxHash)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11.. spelling ::
22
3- xxhash
3+ xxHash
44
55.. index ::
6- single: crypto ; xxhash
6+ single: crypto ; xxHash
77
8- .. _pkg.xxhash :
8+ .. _pkg.xxHash :
99
10- xxhash
10+ xxHash
1111======
1212
1313- `Official <https://github.com/Cyan4973/xxHash >`__
1414- `Hunterized <https://github.com/hunter-packages/xxHash >`__
1515- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/xxhash/CMakeLists.txt >`__
1616- Added by `Warchant <https://github.com/Warchant >`__ (`pr-1738 <https://github.com/ruslo/hunter/pull/1738 >`__)
1717
18- .. literalinclude :: /../examples/xxhash /CMakeLists.txt
18+ .. literalinclude :: /../examples/xxHash /CMakeLists.txt
1919 :language: cmake
2020 :start-after: # DOCUMENTATION_START {
2121 :end-before: # DOCUMENTATION_END }
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ cmake_minimum_required(VERSION 3.5)
77# * https://github.com/hunter-packages/gate
88include ("../common.cmake" )
99
10- project (download-xxhash )
10+ project (download-xxHash )
1111
1212# DOCUMENTATION_START {
13- hunter_add_package(xxhash )
14- find_package (xxhash CONFIG REQUIRED)
13+ hunter_add_package(xxHash )
14+ find_package (xxHash CONFIG REQUIRED)
1515
1616add_executable (boo boo.cpp)
17- target_link_libraries (boo PUBLIC xxhash)
17+ target_link_libraries (boo PUBLIC xxHash:: xxhash)
1818# DOCUMENTATION_END }
Original file line number Diff line number Diff line change 1+ #include < xxhash.h>
2+ #include < iostream>
3+
4+ int main () {
5+ XXH64_state_t* const state = XXH64_createState ();
6+ XXH64_update (state, " hello" , 5 );
7+ XXH64_hash_t const hash = XXH64_digest (state);
8+ std::cout << std::hex << hash << std::endl;
9+ XXH64_freeState (state);
10+ return 0 ;
11+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments