-
Notifications
You must be signed in to change notification settings - Fork 7k
[ensmallen] Fix usage #38515
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
base: master
Are you sure you want to change the base?
[ensmallen] Fix usage #38515
Conversation
"blas", | ||
"lapack", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependencies of armadillo, not direct dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The port usage tests pass with the following triplets:
x64-windows
@WangWeiLin-MV I am aware of what FindOpenMP provides. The point is that |
@dg0yt Thanks for your explanation. The upstream uses an old version of @Thomas1664 It might be a safety workaround that disable the option |
vcpkg use a new version of CMake to build that port. It is not necessary to disable OpenMP. I just ask for using the same pattern during build and usage. |
@dg0yt How about using the new FindOpenMP and skip the original target creation: # Find OpenMP and link it.
if(USE_OPENMP)
+ find_package(OpenMP REQUIRED)
+ if(0)
- if(NOT TARGET OpenMP::OpenMP_CXX) The local test passes, but I haven't test it without omp. |
I pushed the changes that I believe @dg0yt was suggesting. @Thomas1664 does this make any sense? If not feel free to just chop off my commit and the merge. |
With CMake in vpckg being recent enough, wouldn't the best way using |
I wasn't sure, but that makes sense to me. Stand by... |
Hmmm.... what the port was doing worked on macOS and find_package(OpenPM does not. But looking at this again... did this ever actually turn on OpenMP at all? The original tried:
but as far as I can tell |
I can confirm that in commit 0ba9b4e, CMake wasn't even looking for OpenMP. In Bill's latest commit, it searches for it but fails:
|
This is how we deal with openmp on osx: vcpkg/scripts/ci.feature.baseline.txt Line 2223 in d30fdf5
i.e. allow it to be used with other toolchains. |
The "supports" clause reflects platforms that may be fixed by this new version.Any fixed CI baseline entries are removed from that file../vcpkg x-add-version --all
and committing the result.