Skip to content

Instantly share code, notes, and snippets.

@MVoz
Last active April 7, 2018 15:22
Show Gist options
  • Save MVoz/663899efab3834c4544dc3cd6e89113b to your computer and use it in GitHub Desktop.
Save MVoz/663899efab3834c4544dc3cd6e89113b to your computer and use it in GitHub Desktop.
"Intel C++ Compiler" + "Microsoft Visual Studio 2017"

поддержка "Intel C++ Compiler 18.0" и "Intel C++ Compiler 17.0" в "Microsoft Visual Studio 2017 +"

надо просто скопировать, c

"C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets" в "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets"

пару папок

"Intel C++ Compiler 18.0" и "Intel C++ Compiler 17.0"

но это еще не все, надо еще скопировать все файлы начинающиеся с имени "Intel.*" с папки

"C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140"

в

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets"

собственно все, можно использовать cmake c переназначением

cmake .. -L -DCMAKE_INSTALL_PREFIX:PATH="../_Rel" -Wno-dev -DCMAKE_PREFIX_PATH="E:/tools/vcpkg/installed/x64-windows-static" -DCMAKE_CL_64=1 -DBUILD_TESTS:BOOL=OFF -G"Visual Studio 15 2017 Win64" -T"Intel C++ Compiler 18.0" -DBUILD_SHARED_LIBS=OFF -DCMAKE_SYSTEM_VERSION=10.0.16299.0

cmake --build . --config Release -- /p:VcpkgTriplet=x64-windows-static

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment