I initially thought it was a bug but apparently not
It works on other platform but somehow on arm64, cmake generates something different and the linker failed. Did anyone see that too?
Or does it have to be taken care manually? as in cmake std functions do not support this setup.