-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[llvm-openmp,openmp] add a meta-package for OpenMP #39389
base: master
Are you sure you want to change the base?
Changes from 1 commit
15601a2
9d4762e
d604a38
02de561
c706c61
2b82509
56d87ef
7147c2a
093f31f
3923506
a5e393d
53dfe61
a5e43c0
200dde7
a69c5ba
aa78b5f
c963fd9
5c8c4ed
69c8752
eb1057c
2bd4b35
0ff691a
7b7d2d3
50bd3bf
1d69490
d2f69f6
e966c87
eac6142
a7fa2b2
1f9fbe6
5d26728
ee6c93d
58ffc59
c929c14
1222ca9
6d20fe8
2d9775a
a8bcff8
95280e1
e297073
78ffd23
535de03
5e22a88
5e358cd
710ed57
1c2ab7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Uses llvm-openmp from Vcpkg for Clang and AppleClang and the native OpenMP implementation for all other compilers. | ||
|
||
set(_CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}") | ||
# if(CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|AppleClang)$") | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|AppleClang)$") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so how to use it also with MSVC, if I would like to? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Realistically, you should probably simply use the LLVM OpenMP implementation included with MSVC, available by setting |
||
list(PREPEND CMAKE_MODULE_PATH "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/share/llvm-openmp") | ||
# endif() | ||
endif() | ||
_find_package(${ARGS}) | ||
set(CMAKE_MODULE_PATH "${_CMAKE_MODULE_PATH}") |
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.
New ports are not allowed to add wrapper files anymore, and as additional information, compiler condition is not allowed in portfile.cmake, it could be determined in the CMakeLists.txt of project.
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.
Could you be more specific?
FindOpenMP.cmake
is an official CMake Find module. That's the case where wrappers might be appropriate.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.
I'm not quite sure how to modify it.
@data-queue Could you help to take a look? Thanks.