Datasmith ifc importer not working (build from source)

I have the exact same issue. I’ve tried looking at all dependencies and even tried finding out where else in plugin source code it enables the WITH_IFC_ENGINE_LIB condition. I cannot find where this happens. The only references to this symbol in the entire engine seems to be using #ifdef, it does not seem to get defined anywhere.