From dccd628321b9f47ab0971f059c0f6baf74a843e7 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 10 Nov 2021 00:49:21 +0100 Subject: cmake: fix find_package related naming mismatch for GLIB2 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d86b8ac4..dc5d60d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- cgit v1.2.1