If you build on Linux, and PCL picks up OpenMP, and then your executable doesnt have OpenMP flags set correctly, you get build failures.
Aim here:
Provide a flag so user can select whether to use OpenMP or not.
Boolean flag gets passed to each dependency, so each project can decide how to handle it, and we dont accidentally pass compile time flags to dependencies that DONT need them.
Then in our project, we find_package(OpenMP) and apply settings to the final executable.
If you build on Linux, and PCL picks up OpenMP, and then your executable doesnt have OpenMP flags set correctly, you get build failures.
Aim here:
find_package(OpenMP)
and apply settings to the final executable.