CLion build error: ld.exe: unrecognized option '--out-implib'

I created project via platformio init --ide clion --board uno and it works, I’m able to get the blink example running on the board via platformio run -t upload. When I import it in CLion I get working completion, navigation, error highlighting but when I build it I get linker error ld.exe: unrecognized option '--out-implib'. How do I fix that error?

When I open this example project in CLion it works (including uploading). Will try to find a difference.

Somehow everything works fine today.