]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: fix find_package related naming mismatch for GLIB2
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 9 Nov 2021 23:49:21 +0000 (00:49 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 9 Nov 2021 23:49:21 +0000 (00:49 +0100)
The package name passed to `find_package_handle_standard_args` (GLIB2) did not match the name of the calling package (GLib2).
This could lead to problems when calling code that expects `find_package`.
result variables (e.g. `_FOUND`) expect to follow a certain pattern.

fixes #319

CMakeLists.txt
cmake/modules/FindGLIB2.cmake [moved from cmake/modules/FindGLib2.cmake with 100% similarity]

index d86b8ac46081148161693e9f5a2a5933186ea060..dc5d60d677b92db4acd0913d1ad4b4564183838a 100644 (file)
@@ -191,7 +191,7 @@ endif()
 
 find_package(EXPAT)
 find_package(X11)
-find_package(GLib2)
+find_package(GLIB2)
 if(GLIB2_FOUND)
     option(DBUS_WITH_GLIB "build with glib" ON)
 endif()