microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.48k stars 455 forks source link

CMake Intel DPC++ compiler support #3045

Open SergMariaDB opened 1 year ago

SergMariaDB commented 1 year ago

Brief Issue Summary

Please, consider adding Intel DPC++ compiler support to CMake kits detection.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

Here is some info https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-setup/use-the-command-line/use-cmake-with-the-compiler.html

The one may be downloaded here: https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-setup/use-the-command-line/use-cmake-with-the-compiler.html

gcampbell-msft commented 1 year ago

Thank you for the feature idea. We may not be able to get to this immediately, but I'm tagging it for further discussion.

LXYan2333 commented 1 year ago

add these lines to the .vscode/cmake-kits.json:

[
    {
        "name": "DPC++",
        "environmentSetupScript": "/opt/intel/oneapi/setvars.sh",
        "compilers": {
            "C": "icx",
            "CXX": "icpx"
        }
    }
]
SergMariaDB commented 10 months ago

Thanks @LXYan2333, need to check. Qt plugin generates something similar https://codereview.qt-project.org/q/project:qt-labs%252Fvscodeext I am sure that this approach may be part of Intel plugin if not the CMake extension