Re: [CMake] How to use CMAKE_MFC_FLAG for only one on executables?

2016-06-01 Thread David Cole via CMake
Or just isolate it into its own CMakeLists.txt file in a sub-directory? On Wed, Jun 1, 2016 at 8:34 AM, Nicholas Braden wrote: > Have you tried unsetting it after adding the executable in question? > If that doesn't work, is it possible to make the MFX executable be

[CMake] How to use CMAKE_MFC_FLAG for only one on executables?

2016-06-01 Thread Zhang Peixuan
Hello All, I want to use CMake to manage my MFC projects, and I added the following code: set( CMAKE_MFC_FLAG 2) add_executable(MFCDemo WIN32 ${MFC_RESOURCE_FILES} ${MFC_HEADER_FILES} ${MFC_SOURCE_FILES} ) target_compile_definitions(MFCDemo