Change debug / compiler options

Thank you! I figured, I simply had to return any value inside this function (I didn’t show here). Sorry for bothering.

However, I’ve seen on Using gdb debugger in an efficient way - #3 by christian_castagna that I could use the G4 debugger via

cmake -DCMAKE_BUILD_TYPE=Debug .
make clean install

but I don’t know where to put this. As I’m compiling on Windows, I’m using this command in the terminal:

cmake --build . --config RelWithDebInfo

which produces an .exe in the folder RelWithDebInfo. I figured out I can compile via

cmake -DCMAKE_BUILD_TYPE=Debug .

but I can’t see an .exe file somewhere.