From e34c83540dd324c42c5627e96b8f05b2f79aadb3 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 28 Apr 2004 13:40:58 -0400 Subject: BUG: fix for bug 121 add some docs for MFC flag --- Source/MFCDialog/CMakeLists.txt | 8 +++++++- Source/cmAddExecutableCommand.h | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/MFCDialog/CMakeLists.txt b/Source/MFCDialog/CMakeLists.txt index c23a3bb..35609f3 100644 --- a/Source/MFCDialog/CMakeLists.txt +++ b/Source/MFCDialog/CMakeLists.txt @@ -11,7 +11,13 @@ SET( SRCS # add stuff to use MFC in this executable ADD_DEFINITIONS(-D_AFXDLL) -SET(CMAKE_MFC_FLAG 6) + +# Use of CMAKE_MFC_FLAG +# Values: +# 0: Use Standard Windows Libraries +# 1: Use MFC in a Static Library +# 2: Use MFC in a Shared DLL +SET(CMAKE_MFC_FLAG 2) ADD_EXECUTABLE(CMakeSetup WIN32 ${SRCS}) TARGET_LINK_LIBRARIES(CMakeSetup CMakeLib) diff --git a/Source/cmAddExecutableCommand.h b/Source/cmAddExecutableCommand.h index cb8bb6f..a3fe568 100644 --- a/Source/cmAddExecutableCommand.h +++ b/Source/cmAddExecutableCommand.h @@ -69,6 +69,11 @@ public: "After specifying the executable name, WIN32 and/or MACOSX_BUNDLE can " "be specified. WIN32 indicates that the executable (when compiled on " "windows) is a windows app (using WinMain) not a console app (using main). " + "The variable CMAKE_MFC_FLAG be used if the windows app uses MFC. " + "This variable can be set to the following values:\n" + " 0: Use Standard Windows Libraries\n" + " 1: Use MFC in a Static Library \n" + " 2: Use MFC in a Shared DLL \n" "MACOSX_BUNDLE indicates that when build on Mac OSX, executable should " "be in the bundle form. The MACOSX_BUNDLE also allows several variables " "to be specified:\n" -- cgit v0.12