mirror of https://github.com/CGAL/cgal
Fix CGAL_TOOLSET for latest visual compilers.
This commit is contained in:
parent
dc5853cb1f
commit
58b647a1c1
|
|
@ -8,8 +8,12 @@ if ( NOT CGAL_GENERATOR_SPECIFIC_SETTINGS_FILE_INCLUDED )
|
||||||
set(CGAL_AUTO_LINK_ENABLED TRUE)
|
set(CGAL_AUTO_LINK_ENABLED TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if ( MSVC15 )
|
if ( MSVC_TOOLSET_VERSION )
|
||||||
set(CGAL_TOOLSET "vc150")
|
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." )
|
message( STATUS "Using VC15 compiler." )
|
||||||
elseif ( MSVC14 )
|
elseif ( MSVC14 )
|
||||||
set(CGAL_TOOLSET "vc140")
|
set(CGAL_TOOLSET "vc140")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue