Skip to content

GH-49974: [C++][CMake] Add missing result variable initialization for validate_apple_libtool()#49975

Open
kou wants to merge 1 commit into
apache:mainfrom
kou:cpp-libtool-validation
Open

GH-49974: [C++][CMake] Add missing result variable initialization for validate_apple_libtool()#49975
kou wants to merge 1 commit into
apache:mainfrom
kou:cpp-libtool-validation

Conversation

@kou
Copy link
Copy Markdown
Member

@kou kou commented May 14, 2026

Rationale for this change

find_package()'s VALIDATOR's result variable must be initialized to TRUE by caller.

We reuse the VALIDATOR (validate_apple_libtool()) when we specify CMAKE_LIBTOOL explicitly. But we didn't initialize the result variable to TRUE.

What changes are included in this PR?

Initialize is_apple_libtool explicitly.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

`find_package()`'s `VALIDATOR`'s result variable must be initialized
to `TRUE` by caller.
@github-actions
Copy link
Copy Markdown

⚠️ GitHub issue #49974 has been automatically assigned in GitHub to PR creator.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a macOS CMake configuration bug where explicitly setting -DCMAKE_LIBTOOL=... could fail validation because the VALIDATOR result variable wasn’t initialized before calling validate_apple_libtool().

Changes:

  • Initialize is_apple_libtool to TRUE before invoking validate_apple_libtool() when CMAKE_LIBTOOL is explicitly provided.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants