How can I change from unixODBC to iODBC?

Hi, I’m trying to add a library on my mac m1 that uses mysql connection.
I installed and configure iODBC, the connection with the lib is working.
But Im getting the following error, seems that Kicad is trying to use unixODBC instead of iODBC that I have installed.

(/Users/kicad/remoteroot/workspace/build-macos-kicad-release/kicad-mac-builder/build/kicad/src/kicad/thirdparty/nanodbc/nanodbc/nanodbc.cpp:994: : [unixODBC][ )

Any idea how can I fix it?

Thank you.