Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
xfconf-plugin: Remove plugin when library not found
Browse files Browse the repository at this point in the history
  • Loading branch information
eiskasten committed Aug 18, 2022
1 parent c721425 commit 96bd0ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/plugins/xfconf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ include (LibAddMacros)

find_package (PkgConfig REQUIRED)

pkg_check_modules (XFCE REQUIRED libxfconf-0)
if (DEPENDENCY_PHASE)
pkg_check_modules (XFCE QUIET libxfconf-0)

include_directories (${XFCE_INCLUDE_DIRS})
if (NOT XFCE_FOUND)
remove_plugin (xfconf "libxfconf-0 not found")
else ()
include_directories (${XFCE_INCLUDE_DIRS})
endif ()
endif ()

add_plugin (
xfconf
Expand Down

0 comments on commit 96bd0ec

Please sign in to comment.