summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-09-03 21:01:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-09-03 21:01:07 (GMT)
commit1554265aa6db4cf4b77bb6d034b8127611530bca (patch)
tree42edfc6f5c0d9915750a3be10f103dae2681022d /CMakeLists.txt
parent766f6608bf27c1e9134ba9413e33450f7af99d8d (diff)
downloadCMake-1554265aa6db4cf4b77bb6d034b8127611530bca.zip
CMake-1554265aa6db4cf4b77bb6d034b8127611530bca.tar.gz
CMake-1554265aa6db4cf4b77bb6d034b8127611530bca.tar.bz2
Remove CMakeSetup. Long live cmake-gui, start building Qt now.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt54
1 files changed, 4 insertions, 50 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f76a8d..dc96548 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,54 +76,11 @@ ENDMACRO(CMAKE_HANDLE_SYSTEM_LIBRARIES)
-#-----------------------------------------------------------------------
-# a macro to check for MFC and setup to build the MFC Dialog
-# simply to improve readability of the main script
-#-----------------------------------------------------------------------
-MACRO(CMAKE_TEST_FOR_MFC)
- SET(CMAKE_BUILD_ON_VISUAL_STUDIO 0)
- IF(WIN32 AND NOT UNIX AND NOT BORLAND AND NOT MINGW )
- SET(CMAKE_BUILD_ON_VISUAL_STUDIO 1)
- ENDIF(WIN32 AND NOT UNIX AND NOT BORLAND AND NOT MINGW )
-
- IF(CMAKE_BUILD_ON_VISUAL_STUDIO)
- IF("CMake_HAVE_MFC" MATCHES "^CMake_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)
- MESSAGE(STATUS "Looking for MFC")
- TRY_COMPILE(CMake_HAVE_MFC
- ${CMAKE_BINARY_DIR}
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckIncludeFile.cxx
- CMAKE_FLAGS
- -DCMAKE_MFC_FLAG:STRING=2
- -DCOMPILE_DEFINITIONS:STRING=-D_AFXDLL
- OUTPUT_VARIABLE OUTPUT)
- IF(CMake_HAVE_MFC)
- MESSAGE(STATUS "Looking for MFC - found")
- SET(CMake_HAVE_MFC 1 CACHE INTERNAL "Have MFC?")
- FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
- "Determining if MFC exists passed with the following output:\n"
- "${OUTPUT}\n\n")
- ELSE(CMake_HAVE_MFC)
- MESSAGE(STATUS "Looking for MFC - not found")
- SET(CMake_HAVE_MFC 0 CACHE INTERNAL "Have MFC?")
- FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
- "Determining if MFC exists failed with the following output:\n"
- "${OUTPUT}\n\n")
- ENDIF(CMake_HAVE_MFC)
- ENDIF("CMake_HAVE_MFC" MATCHES "^CMake_HAVE_MFC$")
-
- IF(CMake_HAVE_MFC)
- OPTION(BUILD_MFCDialog "Whether to build the CMakeSetup MFC dialog." ON)
- ELSE(CMake_HAVE_MFC)
- SET(BUILD_MFCDialog 0)
- ENDIF(CMake_HAVE_MFC)
- ELSE(CMAKE_BUILD_ON_VISUAL_STUDIO)
- SET(BUILD_MFCDialog 0)
- ENDIF(CMAKE_BUILD_ON_VISUAL_STUDIO)
-ENDMACRO(CMAKE_TEST_FOR_MFC)
+SET(CMAKE_BUILD_ON_VISUAL_STUDIO 0)
+IF(WIN32 AND NOT UNIX AND NOT BORLAND AND NOT MINGW )
+ SET(CMAKE_BUILD_ON_VISUAL_STUDIO 1)
+ENDIF(WIN32 AND NOT UNIX AND NOT BORLAND AND NOT MINGW )
#-----------------------------------------------------------------------
@@ -447,9 +404,6 @@ IF (UNIX)
ENDIF (UNIX)
-# should we build the MFC dialog? (a macro defined in this file)
-CMAKE_TEST_FOR_MFC()
-
# add the uninstall support
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"