Skip to content

Safer regex replace, keeping options like "/Zc:twoPhase-" intact#3668

Merged
bluca merged 2 commits intozeromq:masterfrom
UniStuttgart-VISUS:master
Sep 4, 2019
Merged

Safer regex replace, keeping options like "/Zc:twoPhase-" intact#3668
bluca merged 2 commits intozeromq:masterfrom
UniStuttgart-VISUS:master

Conversation

@straubar
Copy link
Copy Markdown
Contributor

@straubar straubar commented Sep 4, 2019

In our project, we include libzmq via the FetchContent mechanism and add it using add_subdirectory. In the already set CMAKE_CXX_FLAGS_DEBUG and CMAKE_CXX_FLAGS_RELWITHDEBINFO, we have multiple flags set, such as /Zc:twoPhase-. By applying the regex replace, this was converted to /Z7:twoPhase-, which caused the compilation to fail. The now proposed regex replace is a bit safer, as it does not touch flags containing a ":".

@bluca
Copy link
Copy Markdown
Member

bluca commented Sep 4, 2019

Could you please add a commit with a relicense statement? See https://github.com/zeromq/libzmq/blob/master/RELICENSE/README.md

@bluca bluca merged commit 3413e05 into zeromq:master Sep 4, 2019
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