[CMake] Statically linking with MFC VS2019

Tadej Panjtar tadej.panjtar at gmail.com
Mon Jun 24 12:44:04 EDT 2019


Hello!

In CMakeLists.txt i have:
set(CMAKE_MFC_FLAG 1)
add_executable(executable WIN32 sources...)

When i open the solution, there is in general properties of executable
there is wrong set "Use of MFC": "Use Standard Windows Libraries" instead
of "Use MFC in a Static Library"

What else should i have to set?

I am using cmake-3.15.0-rc2-win32-x86 version of cmake.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190624/c16ab4c0/attachment.html>


More information about the CMake mailing list