Skip to content

GH-49164: [C++] Avoid invalid if() args in cmake when arrow is a subproject#49165

Merged
kou merged 1 commit intoapache:mainfrom
zanmato1984:fix/gh-49164
Feb 7, 2026
Merged

GH-49164: [C++] Avoid invalid if() args in cmake when arrow is a subproject#49165
kou merged 1 commit intoapache:mainfrom
zanmato1984:fix/gh-49164

Conversation

@zanmato1984
Copy link
Contributor

@zanmato1984 zanmato1984 commented Feb 6, 2026

Rationale for this change

Ref #49164: In subproject builds, DefineOptions.cmake sets ARROW_DEFINE_OPTIONS_DEFAULT to OFF, so ARROW_SIMD_LEVEL is never defined. The if() at cpp/src/arrow/io/CMakeLists.txt:48 uses ${ARROW_SIMD_LEVEL} and expands to empty, leading to invalid if() arguments.

What changes are included in this PR?

Use the variable name directly (no ${}).

Are these changes tested?

Yes.

Are there any user-facing changes?

None.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@kou kou merged commit 7fcc0af into apache:main Feb 7, 2026
52 of 53 checks passed
@kou kou removed the awaiting review Awaiting review label Feb 7, 2026
@github-actions github-actions bot added the awaiting merge Awaiting merge label Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants