Getting Meson Executable Path

97 views
Skip to first unread message

Reed Cartwright

unread,
Sep 4, 2021, 5:55:12 PM9/4/21
to The Meson Build System
I'm new to Meson, and I'm porting a CMake configuration to Meson.

I'm would like to create a sublime-project file in my build directory that contains information about how to build and run tests for the project. E.g.

/path/to/meson compile -C build all
/path/to/meson compile -C build test

I'm using configure_file to convert a template in the source directory to a file in the build directory. I would like to use a config variable that holds the path to meson. However, I can't find any documentation in how to access that information.

Is there a recommended way to access the path to the meson executable from a meson.build file?

Thanks,
Reed
Reply all
Reply to author
Forward
0 new messages