]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Enable pkg-config generating also on Windows
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 7 Mar 2019 12:41:53 +0000 (13:41 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 13 Mar 2019 07:56:59 +0000 (08:56 +0100)
pkgconfig support is used by client packages on cross compiled
obs builds.

CMakeLists.txt

index 9bc1055054062dd1cbf4662963438109f770f011..a58599352484778d5cb184d610425e3ec1c2993a 100644 (file)
@@ -89,6 +89,7 @@ set(DATADIR_FROM_PKGSYSCONFDIR ${CMAKE_INSTALL_FULL_DATADIR})
 endif()
 
 option(DBUS_RELOCATABLE "Attempt to make metadata relocatable" ON)
+option(DBUS_ENABLE_PKGCONFIG "Enable pkgconfig support" ON)
 
 # For simplicity, we're not relocatable if CMAKE_INSTALL_LIBDIR
 # is something more complicated (e.g. Debian multiarch);
@@ -671,7 +672,7 @@ add_custom_target(help-options
 #
 # create pkgconfig file
 #
-if(UNIX)
+if(DBUS_ENABLE_PKGCONFIG)
     set(PLATFORM_LIBS pthread ${LIBRT})
     include(FindPkgConfig QUIET)
     if(PKG_CONFIG_FOUND)