To be able to build CGAL on MSVC11

This commit is contained in:
Clément Jamin 2012-03-12 17:27:30 +00:00
parent ceed8982f3
commit a705c16c91
3 changed files with 13 additions and 3 deletions

View File

@ -8,7 +8,10 @@ if ( NOT CGAL_GENERATOR_SPECIFIC_SETTINGS_FILE_INCLUDED )
set(CGAL_AUTO_LINK_ENABLED TRUE)
endif()
if ( MSVC10 )
if ( MSVC11 )
set(CGAL_TOOLSET "vc110")
message( STATUS "Using VC11 compiler." )
elseif ( MSVC10 )
set(CGAL_TOOLSET "vc100")
message( STATUS "Using VC10 compiler." )
elseif ( MSVC90 )

View File

@ -566,7 +566,9 @@ ELSE (_boost_IN_CACHE)
# NOTE: this is not perfect yet, if you experience any issues
# please report them and use the Boost_COMPILER variable
# to work around the problems.
if (MSVC10)
if (MSVC11)
SET (_boost_COMPILER "-vc110")
elseif (MSVC10)
SET (_boost_COMPILER "-vc100")
elseif (MSVC90)
SET (_boost_COMPILER "-vc90")

View File

@ -155,11 +155,16 @@ CGAL_VERSION: Defined in <CGAL/version.h>
// vc90:
# define CGAL_LIB_TOOLSET "vc90"
#elif defined(BOOST_MSVC) && (BOOST_MSVC >= 1600)
#elif defined(BOOST_MSVC) && (BOOST_MSVC == 1600)
// vc10:
# define CGAL_LIB_TOOLSET "vc100"
#elif defined(BOOST_MSVC) && (BOOST_MSVC >= 1700)
// vc11:
# define CGAL_LIB_TOOLSET "vc110"
#elif defined(__BORLANDC__)
// CBuilder 6: