amgcl icon indicating copy to clipboard operation
amgcl copied to clipboard

OpenMP is enabled whenever it is found in the system

Open ilyapopov opened this issue 1 year ago • 2 comments

In CmakeLists.txt, if OpenMP is found on the system, it is unconditionally enabled:

https://github.com/ddemidov/amgcl/blob/c71ab45f911771c108b1842ea7cd11b62432bbf3/CMakeLists.txt#L60-L68

However, I may want to compile my application without OpenMP even though it is installed. Currently, there is no way to do that.

amgcl could define a CMake option to enable/disable use of OpenMP.

ilyapopov avatar Aug 02 '22 18:08 ilyapopov

That is a good point, but I am currently away from keyboard for about two weeks, and so won't be able to implement it right away. I'll gladly accept a pull request though.

ddemidov avatar Aug 03 '22 10:08 ddemidov

No problem! I will try to make a PR in the coming days.

ilyapopov avatar Aug 03 '22 10:08 ilyapopov