[cmake-developers] Ninja: Regressions re. def file handling with MSVC

Amine Khaldi amine.khaldi at reactos.org
Mon Apr 2 09:11:12 EDT 2012


> 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.



More information about the cmake-developers mailing list