"cmake -E __create_def" doesn't manage IMAGE_FILE_MACHINE_THUMB ?
We create Windows CE obj files with COFF machine type = 0x01c2 (IMAGE_FILE_MACHINE_THUMB).
Our CMakeLists.txt sets WINDOWS_EXPORT_ALL_SYMBOLS property to true for the DLL built from the obj files.
The generated "cmake -E __create_def" command fails with "unrecognized file format" (bindexplib::DumpFile())
Looking at bindexplib.cxx file, it seems that IMAGE_FILE_MACHINE_THUMB is not managed by the code :
if (((imageHeader->Machine == IMAGE_FILE_MACHINE_I386) ||
(imageHeader->Machine == IMAGE_FILE_MACHINE_AMD64) ||
(imageHeader->Machine == IMAGE_FILE_MACHINE_ARM) ||
(imageHeader->Machine == IMAGE_FILE_MACHINE_ARMNT) ||
(imageHeader->Machine == IMAGE_FILE_MACHINE_ARM64)) &&