From: Markus Blatt <markus@dr-blatt.de>
Date: Thu, 15 Apr 2021 21:58:56 +0200
Subject: Always install pkg-config files in multiarch library directory.

Even if we do not ship a library, our pkg-config file will include
architecture dependent library paths and libraries that we depend on.
Hence we still need to install into the multiarch library directory.
---
 cmake/Modules/OpmProject.cmake | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/cmake/Modules/OpmProject.cmake b/cmake/Modules/OpmProject.cmake
index 8910ff6..b18b052 100644
--- a/cmake/Modules/OpmProject.cmake
+++ b/cmake/Modules/OpmProject.cmake
@@ -144,14 +144,10 @@ function (opm_cmake_config name)
 	APPEND "${${name}_CONFIG_VARS}"
 	)
 
-  # put this in the right system location; if we have binaries then it
-  # should go in the arch-specific lib/ directory, otherwise use the
-  # common/noarch lib/ directory (these targets come from UseMultiArch)
-  if (${name}_TARGET)
-    set (_pkg_dir ${CMAKE_INSTALL_LIBDIR})
-  else ()
-    set (_pkg_dir lib)
-  endif ()
+  # Even if we do not ship a library, our pkg-config file will include
+  # architecture dependent library path and libraries that we depend on.
+  # Hence we still need to install into the multiarch library directory.
+  set (_pkg_dir ${CMAKE_INSTALL_LIBDIR})
 
   # If there is a library then the cmake package configuration file is architecture
   # dependent and should move to the corresponding multiarch libdir.
