summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-08-22 16:53:25 (GMT)
committerBrad King <brad.king@kitware.com>2003-08-22 16:53:25 (GMT)
commitc59cc5a542ca78cba2983d91b588ae1f7ee490dd (patch)
tree8a8cb774926d628d38d7fb5ae158bd70c50b511a /Source/CMakeLists.txt
parent26c08ee33b29a9b9b0ac01d5cfd26ff18759c43c (diff)
downloadCMake-c59cc5a542ca78cba2983d91b588ae1f7ee490dd.zip
CMake-c59cc5a542ca78cba2983d91b588ae1f7ee490dd.tar.gz
CMake-c59cc5a542ca78cba2983d91b588ae1f7ee490dd.tar.bz2
ENH: Moved decision to build MFCDialog up to top level. It is used in both the Source and Utilities directories.
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt18
1 files changed, 6 insertions, 12 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index b06883a..81e79f6 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -95,18 +95,12 @@ TARGET_LINK_LIBRARIES(CMakeLib cmsys)
# the library is found here
LINK_DIRECTORIES(${CMake_BINARY_DIR}/Source)
-IF (WIN32)
- IF(NOT UNIX)
- IF( NOT BORLAND )
- IF(NOT MINGW )
- LINK_LIBRARIES( rpcrt4.lib )
- ADD_EXECUTABLE(cmw9xcom cmw9xcom.cxx)
- TARGET_LINK_LIBRARIES(cmw9xcom CMakeLib)
- SUBDIRS(MFCDialog)
- ENDIF(NOT MINGW )
- ENDIF( NOT BORLAND )
- ENDIF(NOT UNIX)
-ENDIF (WIN32)
+IF(CMAKE_BUILD_MFC_DIALOG)
+ LINK_LIBRARIES( rpcrt4.lib )
+ ADD_EXECUTABLE(cmw9xcom cmw9xcom.cxx)
+ TARGET_LINK_LIBRARIES(cmw9xcom CMakeLib)
+ SUBDIRS(MFCDialog)
+ENDIF(CMAKE_BUILD_MFC_DIALOG)
ADD_EXECUTABLE(cmake cmakemain.cxx)
ADD_EXECUTABLE(DumpDocumentation cmDumpDocumentation)