diff --git a/Installation/cmake/modules/CGAL_GeneratorSpecificSettings.cmake b/Installation/cmake/modules/CGAL_GeneratorSpecificSettings.cmake index c9da70f3c56..1c859fc9f1e 100644 --- a/Installation/cmake/modules/CGAL_GeneratorSpecificSettings.cmake +++ b/Installation/cmake/modules/CGAL_GeneratorSpecificSettings.cmake @@ -8,7 +8,10 @@ if ( NOT CGAL_GENERATOR_SPECIFIC_SETTINGS_FILE_INCLUDED ) set(CGAL_AUTO_LINK_ENABLED TRUE) endif() - if ( MSVC90 ) + if ( MSVC10 ) + set(CGAL_TOOLSET "vc100") + message( STATUS "Using VC10 compiler." ) + elseif ( MSVC90 ) set(CGAL_TOOLSET "vc90") message( STATUS "Using VC90 compiler." ) elseif ( MSVC80 ) diff --git a/Installation/cmake/modules/FindBoost.cmake b/Installation/cmake/modules/FindBoost.cmake index d0b4b268781..fbdde88c8ab 100644 --- a/Installation/cmake/modules/FindBoost.cmake +++ b/Installation/cmake/modules/FindBoost.cmake @@ -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 (MSVC90) + if (MSVC10) + SET (_boost_COMPILER "-vc100") + elseif (MSVC90) SET (_boost_COMPILER "-vc90") elseif (MSVC80) SET (_boost_COMPILER "-vc80") diff --git a/Installation/include/CGAL/auto_link/auto_link.h b/Installation/include/CGAL/auto_link/auto_link.h index c25320f91c6..3621beb7f43 100644 --- a/Installation/include/CGAL/auto_link/auto_link.h +++ b/Installation/include/CGAL/auto_link/auto_link.h @@ -143,6 +143,11 @@ CGAL_LIB_RT_OPT: A suffix that indicates the runtime library used, // vc90: # define CGAL_LIB_TOOLSET "vc90" +#elif defined(BOOST_MSVC) && (BOOST_MSVC >= 1600) + + // vc10: +# define CGAL_LIB_TOOLSET "vc100" + #elif defined(__BORLANDC__) // CBuilder 6: