Skip to content

How to define macros from meson command line invocation ? #10608

Closed Answered by eli-schwartz
frak0d asked this question in Q&A
Discussion options

You must be logged in to vote
CXXFLAGS="$CXXFLAGS -DMY_MACRO=45" meson setup builddir

meson setup builddir -Dcpp_args="$CXXFLAGS -DMY_MACRO=45"

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@frak0d
Comment options

@eli-schwartz
Comment options

@WarrenWeckesser
Comment options

@eli-schwartz
Comment options

Answer selected by frak0d
@WarrenWeckesser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants