I have some Python scripts which should run when building the Flutter Windows app. It looks like:
find_package( PythonInterp 3 REQUIRED )
add_custom_target(
myscript ALL
COMMAND ${PYTHON_EXECUTABLE} somefile.py
)
add_dependencies(${PLUGIN_NAME} myscript)
However, in my script, I need to know whether it is doing a debug or a release build. But I cannot find out an approach to do this.
I have tried to print every cmake variable, and nothing indicates it is a debug or release. I have also tried to print out all environment variables in the python script, but again nothing interesting.
Thanks for any suggestions!