Specify a Base Platform Toolset
By default, when your project uses the
Intel® oneAPI
,
the Base Platform Toolset property is set to use that compiler with the build
environment. This environment includes paths, libraries, included files, etc.,
of the toolset specific to the version of Microsoft Visual Studio* you are
using.
DPC++/C++
Compiler You can set the general project level property
Base Platform Toolset
to use one of the non-Intel
installed platform toolsets as the base.
For example, if you are using Microsoft Visual Studio 2019, and you
selected the
Intel® oneAPI
in the Platform Toolset property, then the Base Platform Toolset uses the
Microsoft Visual Studio 2019 environment (DPC++/C++
Compilerv142
). If you want to use
other environments from Microsoft Visual Studio along with the
Intel® oneAPI
,
set the
DPC++/C++
CompilerBase Platform Toolset
property to:
- v141for Microsoft Visual Studio 2017
- v142for Microsoft Visual Studio 2019
- v143for Microsoft Visual Studio 2022
Support for Microsoft Visual Studio 2017 is
deprecated as of the Intel® oneAPI 2022.1 release, and will be removed in a
future release.
This property displays all installed toolsets, not
including Intel toolsets.
To set the Base Platform Toolset:
- Using property pages:
- Select the project and open.
- In the left pane, select.
- In the right pane, find.
- Select a value from the pop-up menu.
- Using themsbuild.execommand line tool, use the/p:PlatformToolsetand/p:BasePlatformToolsetoptions.Example: When the Platform Toolset property is already set to use theIntel® oneAPI, to build a project using the Microsoft Visual Studio 2019 environment use the following command:DPC++/C++CompilerMsbuild.exe myproject.vcxproj /p:BasePlatformToolset=v142Example: To set the Platform Toolset property to use theIntel® oneAPIand build a project using the Microsoft Visual Studio 2019 environment use the following command:DPC++/C++CompilerMsbuild.exe myproject.vcxproj /p:PlatformToolset="Intel C++ Compiler 2021" /p:BasePlatformToolset=v142For possible values for the/p:BasePlatformToolsetproperty, see the properties described above.
The next time you build your
project with the
Intel® oneAPI
,
the option you selected is used to specify the build environment.
DPC++/C++
Compiler