File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
# hunter dependencies
2
2
# https://docs.hunter.sh/en/latest/packages/
3
3
4
+ # Append local modules path if Hunter is not enabled
5
+ if (NOT HUNTER_ENABLED )
6
+ list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake/modules )
7
+ endif ()
8
+
4
9
if (TESTING )
5
10
# https://docs.hunter.sh/en/latest/packages/pkg/GTest.html
6
11
hunter_add_package (GTest )
@@ -45,4 +50,4 @@ find_package(libp2p CONFIG REQUIRED)
45
50
46
51
# https://docs.hunter.sh/en/latest/packages/pkg/cppcodec.html
47
52
hunter_add_package (cppcodec )
48
- find_package (cppcodec CONFIG REQUIRED )
53
+ find_package (cppcodec REQUIRED )
Original file line number Diff line number Diff line change
1
+ # Try to find cppcodec
2
+ # Once done, this will define
3
+ #
4
+ # CPPCODEC_FOUND - system has cppcodec
5
+
6
+ find_package (PkgConfig )
7
+ if (PKG_CONFIG_FOUND )
8
+ pkg_check_modules (CPPCODEC cppcodec )
9
+ endif ()
You can’t perform that action at this time.
0 commit comments