Skip to content

guarding the POSITION_INDEPENDENT_CODE#2386

Merged
lemire merged 1 commit intomasterfrom
guarding_POSITION_INDEPENDENT_CODE
Jun 30, 2025
Merged

guarding the POSITION_INDEPENDENT_CODE#2386
lemire merged 1 commit intomasterfrom
guarding_POSITION_INDEPENDENT_CODE

Conversation

@lemire
Copy link
Member

@lemire lemire commented Jun 30, 2025

Follow up to #2383 by @xkszltl

We obey CMAKE_POSITION_INDEPENDENT_CODE if it is set.

Fixes #2384

@lemire lemire requested a review from Copilot June 30, 2025 15:28
Copy link

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 ensures that the POSITION_INDEPENDENT_CODE property is only set to ON by default when CMAKE_POSITION_INDEPENDENT_CODE is not defined.

  • Added a conditional check in the CMake configuration to prevent overwriting a user-defined setting.
  • Clarifies the behavior for simdjson's usage in shared libraries.

@lemire lemire merged commit 8df5f96 into master Jun 30, 2025
135 of 143 checks passed
@lemire lemire deleted the guarding_POSITION_INDEPENDENT_CODE branch June 30, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rely on CMAKE_POSITION_INDEPENDENT_CODE

2 participants