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

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake