-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[vcpkg] Add new function vcpkg_copy_tools #8749
Conversation
[libsvm][zyre] Use vcpkg_copy_tools
This should fix czmq build error
This feature is what we need! |
I am wondering if I should put the cleanup work into another function( if ("tool" IN_LIST FEATURES)
vcpkg_copy_tools(zmakecert)
else()
vcpkg_copy_tools() # Install nothing, but do cleanup
endif() I feel comfortable with this form: if ("tool" IN_LIST FEATURES)
vcpkg_copy_tools(zmakecert) # After `zmakecert` is installed, call `vcpkg_clean_executables`
else()
vcpkg_clean_executables() # Install nothing, but do cleanup
endif() |
/azp run |
/azp run |
/azp run |
/azp run |
/azp run |
I have made some extensions to vcpkg_copy_tool_dependencies to solve some problems I encountered in use. I hope it can be helpful to you, so that the new vcpkg_copy_tools can also solve the problems I encountered. My PR #10653 |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Looks good to me! Thanks @myd7349 :) |
There are so many ports that provides a
tools
/tool
feature to let the users be able to install optional executables:cpuinfo:
czmq:
libsvm:
As we can see, these code have been repeated again and again, so I think it is time to create a little shiny function for it. Here it is!
With
vcpkg_copy_tools
, those code snippets I mentioned above can be replaced as:czmq:
cpuinfo:
libsvm: