And so on… In all cases, pio install content of test/ folder instead of root, and that causes build errors (see .pio/<env>/crcpp/ content). Is that normal? If i copy sources to lib/ folder - build works as expected.
Is there any way to use original repo somehow, and include inc/CRC.h into my files (without original project changes)?
PS. Anyway, IMO, pio should not try to use test/ folder of dependencies for build.
The safest way to use a non-PlatformIO library within PlatformIO is to make it explicitly PlatformIO-compatible, that is, by forking it and giving it a library.json.