ENH: make it work with cmake 1.6 with no backwards compatibility
This commit is contained in:
parent
3547363ac0
commit
c81f64d3b9
|
@ -1,5 +1,15 @@
|
|||
PROJECT(CMake)
|
||||
|
||||
IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.4)
|
||||
IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
|
||||
SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
|
||||
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
|
||||
IF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
|
||||
SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
|
||||
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
|
||||
INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)
|
||||
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.4)
|
||||
|
||||
IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -timplicit_local -no_implicit_include ")
|
||||
|
|
Loading…
Reference in New Issue