Skip to content
Snippets Groups Projects
Commit e02d0c1c authored by Dave Moxey's avatar Dave Moxey
Browse files

Try to add a few more toolsets

parent 4ef61e04
Branches fix/MC_Detect
No related tags found
No related merge requests found
......@@ -75,19 +75,23 @@ IF (THIRDPARTY_BUILD_BOOST)
ENDIF ()
ENDIF()
# Build Boost
# Build Boost: first need to select toolset.
IF (APPLE)
SET(TOOLSET darwin)
ELSEIF (WIN32)
IF (MSVC10)
SET(TOOLSET msvc-10.0)
ELSEIF (MSVC11)
SET(TOOLSET msvc-11.0)
ELSEIF (MSVC12)
SET(TOOLSET msvc-12.0)
ELSEIF (MSVC14)
SET(TOOLSET msvc-14.0)
IF (MSVC_VERSION EQUAL 1600)
SET(TOOLSET msvc-10.0) # Visual Studio 2010
ELSEIF (MSVC_VERSION EQUAL 1700)
SET(TOOLSET msvc-11.0) # Visual Studio 2012
ELSEIF (MSVC_VERSION EQUAL 1800)
SET(TOOLSET msvc-12.0) # Visual Studio 2013
ELSEIF (MSVC_VERSION EQUAL 1900)
SET(TOOLSET msvc-14.0) # Visual Studio 2015
ELSEIF (MSVC_VERSION GREATER 1909 OR MSVC_VERSION LESS 1920)
SET(TOOLSET msvc-14.1) # Visual Studio 2017
ENDIF()
ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Cray")
SET(TOOLSET cray)
ELSE()
SET(TOOLSET gcc-${CMAKE_CXX_COMPILER_VERSION})
ENDIF()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment