CMake: use new policies for Highway#13414
Open
bneradt wants to merge 1 commit into
Open
Conversation
bneradt
force-pushed
the
cmake-highway-policy-warnings
branch
from
July 21, 2026 17:45
221ae3c to
a0b222d
Compare
CMake 4.3 reports three policy warnings while configuring bundled Highway. Each exposes compatibility behavior that makes configuration less deterministic or defers failures. The warnings and fixes are: * `CMP0111 OLD behavior is deprecated`: Highway’s GTest workaround allows an imported target without a location to produce unusable build rules. ATS disables Highway tests, so this selects NEW and makes any incomplete imported target fail during generation. * `CMP0075 is not set`: Highway’s header checks ignore inherited CMAKE_REQUIRED_LIBRARIES under OLD behavior. ATS also leaves OpenSSL libraries and includes in the probe state after TLS checks. This selects NEW and removes those OpenSSL values before generic checks, so required libraries are honored without leaking TLS dependencies. * `CMP0077 is not set`: Highway’s option(BUILD_SHARED_LIBS) discards the normal value supplied by ATS under OLD behavior. This selects NEW to preserve the parent setting while HWY_FORCE_STATIC_LIBS keeps bundled Highway static.
bneradt
force-pushed
the
cmake-highway-policy-warnings
branch
from
July 21, 2026 17:50
a0b222d to
6d946c3
Compare
phongn
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CMake 4.3 reports three policy warnings while configuring bundled
Highway. Each exposes compatibility behavior that makes configuration
less deterministic or defers failures.
The warnings and fixes are:
CMP0111 OLD behavior is deprecated: Highway’s GTest workaroundallows an imported target without a location to produce unusable
build rules. ATS disables Highway tests, so this selects NEW and
makes any incomplete imported target fail during generation.
CMP0075 is not set: Highway’s header checks ignore inheritedCMAKE_REQUIRED_LIBRARIES under OLD behavior. ATS also leaves OpenSSL
libraries and includes in the probe state after TLS checks. This
selects NEW and removes those OpenSSL values before generic checks,
so required libraries are honored without leaking TLS dependencies.
CMP0077 is not set: Highway’s option(BUILD_SHARED_LIBS) discardsthe normal value supplied by ATS under OLD behavior. This selects
NEW to preserve the parent setting while HWY_FORCE_STATIC_LIBS keeps
bundled Highway static.