Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for vcpkg in Makefile.win #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

s-vincent
Copy link

This PR adds support for VCPKG_ROOT variable in Makefile.win. It checks that OpenCL headers can be found before use. In case VCPKG_ROOT is not defined / or no OpenCL SDK is built with vcpkg, it falls back to the OPENCLDIR detection.

I also write a script to retrieve vcpkg.exe and build the OpenCL SDK dependency (for x64 or x86) and set VCPKG_ROOT.
So a build with vcpkg can be like that (in a Developer Command Prompt terminal) :

fetch-opencl-vcpkg-win.cmd
make.cmd

I have tested with Visual Studio 2022 for x86 and x64 architectures with VCPKG_ROOT.
I also tested with the (now deprecated) AMDAPP / Intel OpenCL SDK, and the fetch-opencl-dev-win.cmd script (without VCPKG_ROOT environment variable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant