Add a line in the Supported Compilers about MSVC and CMake

This commit is contained in:
Maxime Gimeno 2019-09-27 14:51:56 +02:00
parent 58b647a1c1
commit 718421b2b9
2 changed files with 4 additions and 6 deletions

View File

@ -165,6 +165,8 @@ In order to build the \cgal libraries, you need a \cpp compiler.
It may work for older versions of the above listed compilers.
\attention Recent versions of CMake are needed for recent versions of MS Visual C++. Please refer to CMake's documentation for further information.
\section secconfigwithcmake Configuring CGAL with CMake

View File

@ -9,12 +9,8 @@ if ( NOT CGAL_GENERATOR_SPECIFIC_SETTINGS_FILE_INCLUDED )
endif()
if ( MSVC_TOOLSET_VERSION )
set(CGAL_TOOLSET "vc${TOOLSET_VERSION}")
string(SUBSTRING "${MSVC_VERSION}" 0 2 TMP_VC_VERSION)
message( STATUS "Using VC ${TMP_VC_VERSION} compiler." )
elseif ( MSVC15 )
set(CGAL_TOOLSET "vc141")
message( STATUS "Using VC15 compiler." )
set(CGAL_TOOLSET "vc${MSVC_TOOLSET_VERSION}")
message( STATUS "Using VC toolset ${MSVC_TOOLSET_VERSION}." )
elseif ( MSVC14 )
set(CGAL_TOOLSET "vc140")
message( STATUS "Using VC14 compiler." )