Verified Commit 920f0e36 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

Don't try to build against missing Mercury components

parent 323885d1
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -115,6 +115,11 @@ macro(_mercury_find_component _component_name)
    PATHS ${PC_MERCURY_LIBRARY_DIRS}
  )

  if(NOT ${_upper_component}_LIBRARY_RELEASE AND
     NOT ${_upper_component}_LIBRARY_DEBUG)
    return()
  endif ()

  # initialize ${_upper_component}_LIBRARY (e.g. NA_LIBRARY)
  # with the appropriate library for this build configuration
  select_library_configurations(${_upper_component})