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

Commit

Permalink
xfconf-plugin: Let docker reformat cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
eiskasten committed Oct 12, 2022
1 parent c8c3096 commit b20f230
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions scripts/cmake/Modules/FindXfconf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
# ~~~

if (XFCONF_INCLUDE_DIR) # Already in cache, be silent.
set (XFCONF_FIND_QUIETLY TRUE)
set (XFCONF_FIND_QUIETLY TRUE)
endif (XFCONF_INCLUDE_DIR)

find_path (
XFCONF_INCLUDE_DIR
PATHS /usr/include /usr/local/include
PATH_SUFFIXES xfce4/xfconf-0)
XFCONF_INCLUDE_DIR
PATHS /usr/include /usr/local/include
PATH_SUFFIXES xfce4/xfconf-0)
find_library (
XFCONF_LIBRARY
NAMES xfconf-0
PATHS /usr/lib /usr/lib64 /usr/local/lib)
XFCONF_LIBRARY
NAMES xfconf-0
PATHS /usr/lib /usr/lib64 /usr/local/lib)

# Handle the QUIETLY and REQUIRED arguments and set XFCONF_FOUND to TRUE if all listed variables are TRUE.
include (FindPackageHandleStandardArgs)
Expand Down
16 changes: 8 additions & 8 deletions src/plugins/xfconf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ include (LibAddMacros)
include (FindXfconf)

if (NOT XFCONF_FOUND)
remove_plugin (xfconf "libxfconf not found")
return ()
remove_plugin (xfconf "libxfconf not found")
return ()
endif ()

add_plugin (
xfconf
SOURCES xfconf.h xfconf.c
INCLUDE_DIRECTORIES "${XFCONF_INCLUDE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
LINK_ELEKTRA elektra-ease
LINK_LIBRARIES ${XFCONF_LIBRARIES}
ADD_TEST TEST_README COMPONENT libelektra${SO_VERSION}-experimental)
xfconf
SOURCES xfconf.h xfconf.c
INCLUDE_DIRECTORIES "${XFCONF_INCLUDE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
LINK_ELEKTRA elektra-ease
LINK_LIBRARIES ${XFCONF_LIBRARIES}
ADD_TEST TEST_README COMPONENT libelektra${SO_VERSION}-experimental)

0 comments on commit b20f230

Please sign in to comment.