Another way to set those two variables has to be used for the specific UE case (use a sub CMakeLists.txt, see in build_oai).