Statically linking with MFC VS2019

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Statically linking with MFC VS2019

Tadej Panjtar

In CMakeLists.txt i have:
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.


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: