You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake with a regular call to configure_file() will replace both the @var@ and ${var}, but Meson will only replace the latter. CMake will only replace the @var@ when using the ONLY@ configuration in cmake
To Reproduce
Give the above file snippet as "file.in", and the following Meson vs CMake snippets:
Pretty sure the docs will also need an update. Presently they make it sound like meson and cmake@ are identical in their behavior, which doesn't make sense. One of the three options should allow both ${var} and @var@. From the docs
The format of defines. It defaults to 'meson', and so substitutes #mesondefine statements and variables surrounded by @ characters, you can also use 'cmake' to replace #cmakedefine statements and variables with the ${variable} syntax. Finally you can use 'cmake@' in which case substitutions will apply on #cmakedefine statements and variables with the @variable@ syntax.
Describe the bug
given a replacement file:
CMake with a regular call to
configure_file()
will replace both the@var@
and${var}
, but Meson will only replace the latter. CMake will only replace the@var@
when using theONLY@
configuration in cmakeTo Reproduce
Give the above file snippet as "file.in", and the following Meson vs CMake snippets:
CMake will produce:
while Meson will produce:
Expected behavior
Meson will generate the same output as CMake
system parameters
meson --version
: 1.5.99 and 1.4.2ninja --version
if it's a Ninja build: 1.11.1The text was updated successfully, but these errors were encountered: