CMake recognizes the ".def" extension automatically. Don't mark it with
the EXTERNAL_OBJECT property because that tells CMake to treat it as an
external .obj file. If you remove that mark do things work correctly?
I just removed that property from the gcc build. Now with both MSVC and
gcc builds I get
ninja: ERROR: 'foo.def', needed by 'bar.dll', missing and no known rule
to make it.
If I revert the commit I mentioned before, it works and the def file is
handled correctly.
Regards,
Amine.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers