Skip to content

fix(build): propagate HAS_STRING_VIEW=1 to library consumers#910

Open
ancieg wants to merge 1 commit intoHowardHinnant:masterfrom
ancieg:fix-build-propagate-HAS_STRING_VIEW=1-to-library-consumers
Open

fix(build): propagate HAS_STRING_VIEW=1 to library consumers#910
ancieg wants to merge 1 commit intoHowardHinnant:masterfrom
ancieg:fix-build-propagate-HAS_STRING_VIEW=1-to-library-consumers

Conversation

@ancieg
Copy link
Copy Markdown

@ancieg ancieg commented Apr 2, 2026

Ensure that both the library and its clients use the same ABI for locate_zone (std::string_view overload). Previously, the macro was defined only when building the library, causing linker errors for projects that consumed the shared library without the same define.

Add target_compile_definitions(date-tz INTERFACE HAS_STRING_VIEW=1) to force consistent definition across all dependencies.

Ref: #398

Ensure that both the library and its clients use the same ABI for
locate_zone (std::string_view overload). Previously, the macro was
defined only when building the library, causing linker errors for
projects that consumed the shared library without the same define.

Add target_compile_definitions(date-tz INTERFACE HAS_STRING_VIEW=1)
to force consistent definition across all dependencies.

Ref: HowardHinnant#398
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.

1 participant