Skip to content

Use portable OpenMP configuration to support Clang#7

Draft
1995hnagamin wants to merge 3 commits intoJP-MARs:mainfrom
1995hnagamin:chore/support-clang
Draft

Use portable OpenMP configuration to support Clang#7
1995hnagamin wants to merge 3 commits intoJP-MARs:mainfrom
1995hnagamin:chore/support-clang

Conversation

@1995hnagamin
Copy link
Collaborator

This change enables compilation with Clang+libomp in addition to GCC and Intel compilers.

  • Replace inline -std=c++14 with CMAKE_CXX_STANDARD variable
  • Replace GCC-specific -lgomp with portable OpenMP::OpenMP_CXX target
  • Add find_package(OpenMP REQUIRED) to VoxelFEM example
  • Remove explicit -fopenmp flag (now provided by OpenMP package in CMake)

This reverts commit f23e6bb.

${Basedir} is used in commit c5b6281.
- Replace `-fopenmp` flag with OpenMP::OpenMP_CXX target
- Replace `-lgomp` (GCC-specific) with OpenMP::OpenMP_CXX
- Add find_package(OpenMP REQUIRED) to VoxelFEM example

This change enables building with Clang+libomp.
@1995hnagamin 1995hnagamin marked this pull request as draft February 5, 2026 12:24
@1995hnagamin
Copy link
Collaborator Author

I keep this pull request as Draft until CMakefiles.txt in the main branch is updated.


CMakefiles.txt の別の変更が main ブランチに反映されるまでドラフトのままにします

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

Comments