Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: AndyJ on December 15, 2023, 10:24:13 am
-
Is it possible to get the current profile/personality name as a variable so that I can use it in paths etc within a project?
Thanks in advance for any help with this
-
The list of avaliable built-in variables is here (https://wiki.codeblocks.org/index.php/Variable_expansion). Looks like there are none related to personalities, but you can define your own variable in each personality.
-
I define the personality variable in a .cmd file and use it to start codeblocks.exe.
That makes it available to any process in the .cmd file.