How can I run a custom command before every build and pass the result to a cmake variable?
I know I can do that on the terminal for example cmake -DMY_VAR
cmake -DMY_VAR