Skip to content
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

deps/pog/deps: propagate cxx flags to pog's deps #82

Merged
merged 1 commit into from
Mar 19, 2020

Conversation

PeterMatula
Copy link
Contributor

Propagate CXX flags to pogs's deps.

I'm not sure, if this is the best solution, or if it is general enough. I need something like this in order to build yaramod with static windows runtime. When I include yaramod in RetDec as an external project, I can pass it CMAKE_CXX_FLAGS_RELEASE containing /MT instead of /MD. This nearly works, but without this proposed modification, flags do not get propagated to pog's dependencies: fmt and re2.
With this it seems to work.

A better solution would be to add some yaramod option that would enable static runtime build. But some kind of propagation to deps would be probably needed anyway, so it can be the next step.

@metthal metthal merged commit faf3474 into master Mar 19, 2020
@metthal metthal deleted the propagate-cxx-flags branch March 19, 2020 22:47
metthal pushed a commit that referenced this pull request Mar 25, 2020
* Because fmt is now only builded in release mode, we must not handle it the same way regardless of yaramod build type

* Preserve debug build of fmt

Co-authored-by: Tadeáš Kučera <tadeas.kucera@avast.com>
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.

None yet

2 participants