Skip to content

Commit

Permalink
glog: add version 0.6.0 and disable new dependencies
Browse files Browse the repository at this point in the history
Disable optional dependencies searched for in upstream, we want to
stay reproducible.

- `WITH_UNWIND=OFF`: flag introduced with 0.5.0
- `WITH_GTEST=OFF`: flag introduced with 0.6.0

Fixes: #718
  • Loading branch information
NeroBurner committed Oct 30, 2023
1 parent 8c3a9ba commit 1a4c74b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ hunter_default_version(glfw VERSION 3.3.4-p0)
hunter_default_version(glib VERSION 2.54.0)
hunter_default_version(glm VERSION 0.9.9.8)
hunter_default_version(globjects VERSION 1.1.0-p0)
hunter_default_version(glog VERSION 0.5.0)
hunter_default_version(glog VERSION 0.6.0)
hunter_default_version(glproto VERSION 1.4.17)
hunter_default_version(glslang VERSION 8.13.3743-9eef54b2-p0)
hunter_default_version(glu VERSION 9.0.1-p1)
Expand Down
18 changes: 17 additions & 1 deletion cmake/projects/glog/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,24 @@ hunter_add_version(
d4c64e1b2de9cfc52970532b301106ed94e94991
)

hunter_add_version(
PACKAGE_NAME
glog
VERSION
"0.6.0"
URL
"https://github.com/google/glog/archive/refs/tags/v0.6.0.tar.gz"
SHA1
31376c7916aee2fc6375994468744123ad6179b9
)

# explicitly remove dependency on gflags (only needed for tests)
hunter_cmake_args(glog CMAKE_ARGS WITH_GFLAGS=OFF BUILD_TESTING=OFF)
hunter_cmake_args(glog CMAKE_ARGS
WITH_GFLAGS=OFF
WITH_UNWIND=OFF # since 0.5.0
WITH_GTEST=OFF # since 0.6.0
BUILD_TESTING=OFF
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(glog)
Expand Down

0 comments on commit 1a4c74b

Please sign in to comment.