There is a CMake variable CMAKE_MFC_FLAG that affects how an EXE/DLL links with Microsoft Foundation Class library (e.g. dynamic / static).
Unlike many other variables, there seem to be no corresponding target property (perhaps would have been called “MFC_FLAG”). My conclusion is that this variable setting can only be done at directory level, and all targets build in the same directory will be affected by the same value of CMAKE_MFC_FLAG. Is this correct?
Is there some other way to control the linking of MFC libraries for individual targets?