-MD created files are in the build root directory but the build.ninja is expecting them in the object dir
Legacy cmake system which produces build.ninja but the ninja file referencies the .o.d in the object directory, but if i add -MD to the build the .o.d files are created in the root of the build directory.
build CMakeFiles/ll.dir/sdk/lib/ble/controller/ll/sources/ble/bb/bb_ble_main.c.o: C_COMPILER__ll_Debug ../sdk/lib/ble/controller/ll/sources/ble/bb/bb_ble_main.c || cmake_object_order_depends_target_ll DEFINES = DEP_FILE = CMakeFiles/ll.dir/sdk/lib/ble/controller/ll/sources/ble/bb/bb_ble_main.c.o.d FLAGS = -MD OBJECT_DIR = CMakeFiles/ll.dir OBJECT_FILE_DIR = CMakeFiles/ll.dir/sdk/lib/ble/controller/ll/sources/ble/bb TARGET_COMPILE_PDB = CMakeFiles/ll.dir/ll.pdb TARGET_PDB = lib/DEBUG/ll.pdb
Is there anyway of forcing the system to either put the .o.d into the object dir, -MF would help but how do i get the correct path into the build, or is there another way.