Added a CMake version check and (optional) OpenMP propagation in blasppConfig.cmake.in
David Williams-Young
Branch: Deleted repository:cmake_fix
Branch: icl/blaspp:master
Merged
Merged pull request
Added a version check and (optional) OpenMP propagation in blasppConfig.cmake.in
Generally, full propagation of dependencies should be handled by CMake Config files, i.e.
find_package( blaspp ) add_executable( my_exe my_exe.cxx ) target_link_libraries( my_exe PUBLIC blaspp )
When
use_openmp
is enabled in the CMake build system, OpenMP discovery is not propagated in the Config file. These changes check for the dependency (find_dependency
vsfind_package
which propagates things likeREQUIRED
andQUIET
to that discovery invocation) such that the end user doesn’t need to find it themselves.