3 IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.4)
4 IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
5 SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
6 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
7 IF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
8 SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
9 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
10 INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)
11 ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.4)
13 IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
14 IF(NOT CMAKE_COMPILER_IS_GNUCXX)
15 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -timplicit_local -no_implicit_include ")
16 ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
17 ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
18 SUBDIRS(Source Modules Templates Utilities)
21 # Include the standard Dart testing module
22 INCLUDE (${CMake_SOURCE_DIR}/Modules/Dart.cmake)
23 INCLUDE (${CMake_BINARY_DIR}/Bootstrap/Source/InitialConfigureFlags.cmake
26 IF(CMAKE_CONFIGURE_INSTALL_PREFIX)
27 SET(CMAKE_INSTALL_PREFIX ${CMAKE_CONFIGURE_INSTALL_PREFIX} )
28 ENDIF(CMAKE_CONFIGURE_INSTALL_PREFIX)
30 # use the ansi CXX compile flag for building cmake
32 IF (CMAKE_ANSI_CXXFLAGS)
33 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
34 ENDIF (CMAKE_ANSI_CXXFLAGS)
36 IF (CMAKE_ANSI_CFLAGS)
37 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")
38 ENDIF (CMAKE_ANSI_CFLAGS)
40 # add some testing dependencies
43 CONFIGURE_FILE(${CMake_SOURCE_DIR}/CMakeLogo.gif ${CMake_BINARY_DIR}/Testing/HTML/TestingResults/Icons/Logo.gif COPYONLY)
47 SET(EXECUTABLE_OUTPUT_PATH ${CMake_BINARY_DIR}/Source CACHE PATH
48 "Where to put the executables for CMake"
51 INCLUDE_REGULAR_EXPRESSION("^(\\.\\./)?(cm|CMake|form|ctest).*")
53 INSTALL_FILES(/man/man1 "^cmake\\.1$")
55 CONFIGURE_FILE(${CMake_SOURCE_DIR}/Tests/.NoDartCoverage
56 ${CMake_BINARY_DIR}/Tests/.NoDartCoverage)
57 CONFIGURE_FILE(${CMake_SOURCE_DIR}/Tests/.NoDartCoverage
58 ${CMake_BINARY_DIR}/Modules/.NoDartCoverage)