diff options
| author | mwtoews <mwtoews@gmail.com> | 2018-03-26 07:59:07 +1300 |
|---|---|---|
| committer | mwtoews <mwtoews@gmail.com> | 2018-03-26 07:59:07 +1300 |
| commit | d68054678282c2aea509bd700aa5a4af4173827d (patch) | |
| tree | d5134659cfe32601699cb1c9b8c66da0877b925c /cmake/Proj4SystemInfo.cmake | |
| parent | 325726a2b60743963fe4d392061dc81da1fc01e3 (diff) | |
| download | PROJ-d68054678282c2aea509bd700aa5a4af4173827d.tar.gz PROJ-d68054678282c2aea509bd700aa5a4af4173827d.zip | |
Rename CMake infrastructure to remove 4
Diffstat (limited to 'cmake/Proj4SystemInfo.cmake')
| -rw-r--r-- | cmake/Proj4SystemInfo.cmake | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/cmake/Proj4SystemInfo.cmake b/cmake/Proj4SystemInfo.cmake deleted file mode 100644 index fda57edb..00000000 --- a/cmake/Proj4SystemInfo.cmake +++ /dev/null @@ -1,89 +0,0 @@ -################################################################################ -# SociSystemInfo.cmake - part of CMake configuration of Proj.4 library -# -# Based on idea taken from http://code.google.com/p/softart/ project -################################################################################ -# Copyright (C) 2010 Mateusz Loskot <mateusz@loskot.net> -# -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt) -################################################################################ -# The following variables are defined: -# PROJ_COMPILER_NAME - name of compiler toolset, follows Boost toolset naming. -# PROJ_PLATFORM_NAME - target platform name: x64, x86 or win32 -################################################################################ - -set(PROJ_COMPILER_NAME) -set(PROJ_PLATFORM_NAME) - -if(MINGW OR UNIX) - exec_program(gcc ARGS -dumpversion OUTPUT_VARIABLE GCC_VERSION) - string(REPLACE "." "" GCC_VERSION_STR_FULL ${GCC_VERSION}) - string(REGEX MATCH "[0-9]+\\.[0-9]+" GCC_VERSION_MAJOR_MINOR ${GCC_VERSION}) -endif() - -if(WIN32) - # Compilers, taken from http://predef.sourceforge.net/precomp.html#sec34 - if(MSVC) - if(MSVC_VERSION EQUAL 1200) - set(PROJ_COMPILER_NAME "msvc-6.0") - endif() - if(MSVC_VERSION EQUAL 1300) - set(PROJ_COMPILER_NAME "msvc-7.0") - endif() - if(MSVC_VERSION EQUAL 1310) - set(PROJ_COMPILER_NAME "msvc-7.1") #Visual Studio 2003 - endif() - if(MSVC_VERSION EQUAL 1400) - set(PROJ_COMPILER_NAME "msvc-8.0") #Visual Studio 2005 - endif() - if(MSVC_VERSION EQUAL 1500) - set(PROJ_COMPILER_NAME "msvc-9.0") #Visual Studio 2008 - endif() - if(MSVC_VERSION EQUAL 1600) - set(PROJ_COMPILER_NAME "msvc-10.0") #Visual Studio 2010 - endif() - if(MSVC_VERSION EQUAL 1700) - set(PROJ_COMPILER_NAME "msvc-11.0") #Visual Studio 2012 - endif() - if(MSVC_VERSION EQUAL 1800) - set(PROJ_COMPILER_NAME "msvc-12.0") #Visual Studio 2013 - endif() - if(MSVC_VERSION EQUAL 1900) # CMake 3.1+ - set(PROJ_COMPILER_NAME "msvc-14.0") #Visual Studio 2015 - endif() - if(MSVC_VERSION GREATER 1900 AND MSVC_VERSION LESS 1920) # CMake 3.8+ - set(PROJ_COMPILER_NAME "msvc-14.1") #Visual Studio 2017 - endif() - endif(MSVC) - - if(MINGW) - set(PROJ_COMPILER_NAME "mingw-${GCC_VERSION}") - endif( MINGW ) - - if(CMAKE_GENERATOR MATCHES "Win64") - set(PROJ_PLATFORM_NAME "x64") - else() - set(PROJ_PLATFORM_NAME "win32") - endif() -endif(WIN32) - -if(UNIX) - set(PROJ_COMPILER_NAME "gcc-${GCC_VERSION}") - if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") - set(PROJ_PLATFORM_NAME "x64") - else() - set(PROJ_PLATFORM_NAME "x86") - endif() -endif(UNIX) - -if(NOT PROJ_COMPILER_NAME) - colormsg(_RED_ "WARNING:") - colormsg(RED "Could not determine compiler toolset name to set PROJ_COMPILER_NAME variable.") -endif() - -if(NOT PROJ_COMPILER_NAME) - colormsg(_RED_ "WARNING:") - colormsg(RED "Could not determine platform name to set PROJ_COMPILER_NAME variable.") -endif() |
