Skip to content

Commit

Permalink
cmake: find fabrics quietly if requested
Browse files Browse the repository at this point in the history
  • Loading branch information
omor1 committed Aug 17, 2020
1 parent c9d19f9 commit dd1ba42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake_modules/FindFabric.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ The following cache variables may also be set:
#]=======================================================================]

include(FindPackageHandleStandardArgs)
find_package(PkgConfig)
if(Fabric_FIND_QUIETLY)
find_package(PkgConfig QUIET)
else()
find_package(PkgConfig)
endif()

set(_OFI_PC libfabric)
set(_OFI_HEADER "rdma/fabric.h")
Expand All @@ -93,6 +97,7 @@ foreach(FABRIC IN ITEMS OFI IBV PSM)
)
set(Fabric_${FABRIC}_VERSION ${_Fabric_${FABRIC}_PC_VERSION})

set(Fabric_${FABRIC}_FIND_QUIETLY ${Fabric_FIND_QUIETLY})
find_package_handle_standard_args(Fabric_${FABRIC}
REQUIRED_VARS
Fabric_${FABRIC}_INCLUDE_DIR
Expand Down

0 comments on commit dd1ba42

Please sign in to comment.