Skip to content

CXX-2977 Support generator expressions in MSVC_RUNTIME_LIBRARY #1106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

eramongodb
Copy link
Contributor

Resolves CXX-2977.

#1081 failed to account for the possibility of generator expressions in MSVC_RUNTIME_LIBRARY (either set directly or via CMAKE_MSVC_RUNTIME_LIBRARY). This caused the series of if()/elseif() when MSVC_RUNTIME_LIBRARY is not-empty to fallthrough all string-comparison cases and produce output names with a trailing - and no runtime library property, e.g. mongocxx-v_noabi-dhs-x64-v143-.dll.

This PR adds support for generator expressions by deferring the evaluation of the string comparison to the build generation step via the $<STREQUAL:str1,str2> generator expression.

@eramongodb eramongodb requested a review from kevinAlbs March 1, 2024 20:09
@eramongodb eramongodb self-assigned this Mar 1, 2024
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.

2 participants