1 | initial version |
Ok so I figured it out. Too bad I've been stuck on this for that long.
I am using CLion, so solution may differ, but all you have to do is to delete the cache and reload the project (I personally went to Tools > CMake > Delete cache and Reload project).
If command line works and CMake doesn't, I guess this is all you have to do.
I hope it will eventually come to help someone else who'd have such a stupid error.