I'm under the impression that OpenMP is a general requirement because it is used not only in the Eigen kernels but also in some of the tools. This PR makes OpenMP a general requirement and ensures all libraries and tools are linked against OpenMP.
This PR also helped me to enable OpenMP support on macOS. With PR #200 and this PR merged, I only have to specify -DOpenMP_C_INCLUDE_DIRS=... and -DOpenMP_CXX_INCLUDE_DIRS=... to the path of omp.h. No other settings are required, OpenMP is successfully detected.
I'm under the impression that OpenMP is a general requirement because it is used not only in the Eigen kernels but also in some of the tools. This PR makes OpenMP a general requirement and ensures all libraries and tools are linked against OpenMP.
This PR also helped me to enable OpenMP support on macOS. With PR #200 and this PR merged, I only have to specify
-DOpenMP_C_INCLUDE_DIRS=...
and-DOpenMP_CXX_INCLUDE_DIRS=...
to the path ofomp.h
. No other settings are required, OpenMP is successfully detected.Please test and let me know what you think?