Added a CMake version check and (optional) OpenMP propagation in blasppConfig.cmake.in

Merged
#6 · Created  · Last updated

Merged pull request

Added a version check and (optional) OpenMP propagation in blasppConfig.cmake.in

6a5f690·Author: ·Closed by: ·2020-08-19

Description

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 vs find_package which propagates things like REQUIRED and QUIET to that discovery invocation) such that the end user doesn’t need to find it themselves.

0 attachments

0 comments

Loading commits...