Config changes to warn on older tools.

Warn on to-be-deprecated versions of Cmake, Visual Studio and GCC
This commit is contained in:
James Turner 2016-09-27 20:53:28 -05:00
parent 2e19aaaff9
commit 7b2507cb19

View File

@ -9,6 +9,10 @@ if(COMMAND cmake_policy)
endif() endif()
endif() endif()
if(CMAKE_VERSION VERSION_LESS "3.1")
message(WARNING "CMake 3.1 will be required soon, please upgrade")
endif()
include (CheckFunctionExists) include (CheckFunctionExists)
include (CheckIncludeFile) include (CheckIncludeFile)
include (CheckLibraryExists) include (CheckLibraryExists)
@ -149,8 +153,10 @@ if (MSVC AND MSVC_3RDPARTY_ROOT)
elseif (${MSVC_VERSION} EQUAL 1800) elseif (${MSVC_VERSION} EQUAL 1800)
set( OSG_MSVC ${OSG_MSVC}120 ) set( OSG_MSVC ${OSG_MSVC}120 )
elseif (${MSVC_VERSION} EQUAL 1700) elseif (${MSVC_VERSION} EQUAL 1700)
message(WARNING "Visual Studio 2013 will be required soon, please upgrade")
set( OSG_MSVC ${OSG_MSVC}110 ) set( OSG_MSVC ${OSG_MSVC}110 )
elseif (${MSVC_VERSION} EQUAL 1600) elseif (${MSVC_VERSION} EQUAL 1600)
message(WARNING "Visual Studio 2013 will be required soon, please upgrade")
set( OSG_MSVC ${OSG_MSVC}100 ) set( OSG_MSVC ${OSG_MSVC}100 )
endif () endif ()
if (CMAKE_CL_64) if (CMAKE_CL_64)
@ -348,6 +354,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(WARNING_FLAGS_CXX "-Wall") set(WARNING_FLAGS_CXX "-Wall")
set(WARNING_FLAGS_C "-Wall") set(WARNING_FLAGS_C "-Wall")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4)
message(WARNING "GCC 4.4 will be required soon, please upgrade")
endif()
# certain GCC versions don't provide the atomic builds, and hence # certain GCC versions don't provide the atomic builds, and hence
# require is to provide them in SGAtomic.cxx # require is to provide them in SGAtomic.cxx
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_INCLUDE_PATH}) set(CMAKE_REQUIRED_INCLUDES ${CMAKE_INCLUDE_PATH})