Skip to content

Add OpenMP include directories to compiler and preprocessor flags#757

Open
mmuetzel wants to merge 1 commit intoElmerCSC:develfrom
mmuetzel:openmp
Open

Add OpenMP include directories to compiler and preprocessor flags#757
mmuetzel wants to merge 1 commit intoElmerCSC:develfrom
mmuetzel:openmp

Conversation

@mmuetzel
Copy link
Contributor

@mmuetzel mmuetzel commented Jan 26, 2026

Some implementations of OpenMP (e.g., LLVM libomp) require that the directory where the omp_lib module is installed is explicitly passed as a compiler/preprocessor flag.

Ideally that should be done by linking all CMake targets that use OpenMP with the respective OpenMP CMake target.
For the time being, add the directory manually (to all targets).

Some implementations of OpenMP (e.g., LLVM libomp) require that the directory where the `omp_lib` module is installed is explicitly passed as a compiler flag. Ideally that should be done by linking all CMake targets that use OpenMP with the respective OpenMP CMake target. For the time being, add the directory manually (to all targets).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant