diff options
Diffstat (limited to 'Modules/FindMFC.cmake')
-rw-r--r-- | Modules/FindMFC.cmake | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/Modules/FindMFC.cmake b/Modules/FindMFC.cmake index 4ff7586dc..5c2dbbf6c 100644 --- a/Modules/FindMFC.cmake +++ b/Modules/FindMFC.cmake @@ -1,21 +1,20 @@ -# - Find MFC on Windows -# Find the native MFC - i.e. decide if an application can link to the MFC -# libraries. -# MFC_FOUND - Was MFC support found -# You don't need to include anything or link anything to use it. +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. -#============================================================================= -# Copyright 2002-2009 Kitware, Inc. +#.rst: +# FindMFC +# ------- +# +# Find MFC on Windows +# +# Find the native MFC - i.e. decide if an application can link to the +# MFC libraries. # -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. +# :: # -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= -# (To distribute this file outside of CMake, substitute the full -# License text for the above reference.) +# MFC_FOUND - Was MFC support found +# +# You don't need to include anything or link anything to use it. # Assume no MFC support set(MFC_FOUND "NO") @@ -27,7 +26,7 @@ if(WIN32 AND NOT UNIX AND NOT BORLAND AND NOT MINGW) endif() if(MFC_ATTEMPT_TRY_COMPILE) - if("MFC_HAVE_MFC" MATCHES "^MFC_HAVE_MFC$") + if(NOT DEFINED MFC_HAVE_MFC) set(CHECK_INCLUDE_FILE_VAR "afxwin.h") configure_file(${CMAKE_ROOT}/Modules/CheckIncludeFile.cxx.in ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFile.cxx) |