[Bug][CMAKE][WINDOWS]: missing hardening in CMake/AbseilDll.cmake

Open Beginner friendly
#2,140 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cmake, cpp
Domain
build-system

Research direction

The issue points to CMake/AbseilDll.cmake lines 564-566 and absl/base/CMakeLists.txt. First, examine the hardening target in base/CMakeLists.txt and compare its inclusion to other targets in ABSL_INTERNAL_DLL_TARGETS. Add 'hardening' to the list in AbseilDll.cmake, then test a Windows CMake build to verify the target is linked correctly.

Written by the indexing model from the issue text.

Description

Describe the issue

in https://github.com/abseil/abseil-cpp/commit/d85c5281b875fd58d86524a0b781c09e3248b216
absl::hardening has been added to absl/base/CMakeLists.txt.

But it seems the AbslDLL.cmake miss some bit aka hardening cmake target has not been added to ABSL_INTERNAL_DLL_TARGETS in CMake/AbseilDll.cmake...
see:
https://github.com/abseil/abseil-cpp/blob/fe690e639469d2a3c86bc74dd2456371288d1f28/CMake/AbseilDll.cmake#L564-L566

Steps to reproduce the problem

windows cmake build ?

What version of Abseil are you using?

20260817.0

What operating system and version are you using?

windows msvc...

What compiler and version are you using?

cl.exe

What build system are you using?

cmake

Additional context

No response

Dominant language
C++
Stars
18.1k
Forks
3.2k
Avg merge
12h 35m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abseil/abseil-cpp

All issues in abseil/abseil-cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.