summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-27 13:15:21 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-03-27 13:15:21 (GMT)
commit78650361315beb2a75bdae49988064200710556e (patch)
tree96e12de75bb46a3d9e6785c1590405c880419384
parent6959b5be08fa2e244d78178ee987fffb940c740e (diff)
parentdcf298008f60fa00ddcb225b7a474317ad4d317f (diff)
downloadCMake-78650361315beb2a75bdae49988064200710556e.zip
CMake-78650361315beb2a75bdae49988064200710556e.tar.gz
CMake-78650361315beb2a75bdae49988064200710556e.tar.bz2
Merge topic 'FindMFC-CMP0054'
dcf29800 FindMFC: Use if(DEFINED) to simplify condition (#15477)
-rw-r--r--Modules/FindMFC.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMFC.cmake b/Modules/FindMFC.cmake
index 261ebdb..3547628 100644
--- a/Modules/FindMFC.cmake
+++ b/Modules/FindMFC.cmake
@@ -36,7 +36,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)