[cmake-developers] Cannot Find MFC on Visual Studio 2013(community)

luisch at mint.cx
Sun Nov 16 04:12:09 EST 2014


Hi all,

I tried to 'FIND_PACKAGE(MFC)' on VS2013(community), but MFC not found.
VS2013 has no mfc120.dll but has mfc120u.dll,
so I make a patch for FindMFC.cmake,

like

>     -DCOMPILE_DEFINITIONS:STRING=-D_AFXDLL
>+    -DCOMPILE_DEFINITIONS:STRING=-D_UNICODE
>      OUTPUT_VARIABLE OUTPUT)

and find successfully.
This is not tested at other versions, but probably does correctly.

thanks.


More information about the cmake-developers mailing list