COMP: handle Shark dependency to openmp using REQUIRED_FLAGS
It is not possible to handle OpenMP as a ThirdParty module, because it is processed before any module in the main CMakeLists.txt. Instead, Shark must declare its dependencies via variables such as SHARK_REQUIRED_CXX_FLAGS
and co.
The same thing is done for ITK.
Related to #1592 (closed)
Merge request reports
Activity
Maybe add this explanation:
It is not possible to handle OpenMP as a ThirdParty module, because it is processed before any module in the main CMakeLists.txt. Instead, Shark must declare its dependencies via variables such as
SHARK_REQUIRED_CXX_FLAGS
and co.Somewhere in a comment in the cmake code? It might help a future reader to understand the cmake logic.
added 1 commit
- f903ded2 - DOC: document the role and limits of OTB_USE_OPENMP
mentioned in commit 054aeb7c
Please register or sign in to reply