Skip to content

Commit

Permalink
dbus-1 target already exists in the wild
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jun 10, 2024
1 parent 6381e99 commit d2eed9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/find/FindDBus1.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if(NOT DBus1_ARCH_INCLUDE_DIRS)
endif()

# setup imported target
add_library(dbus-1 INTERFACE)
add_library(dbus-1::dbus-1 ALIAS dbus-1)
add_library(dbus-1-headers-only INTERFACE)
add_library(dbus-1::dbus-1-headers-only ALIAS dbus-1-headers-only)
set_property(TARGET dbus-1 APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${DBus1_INCLUDE_DIRS} ${DBus1_ARCH_INCLUDE_DIRS})
set(DBus1_FOUND 1)
2 changes: 1 addition & 1 deletion simpleble/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endif()

if(UNIX AND NOT APPLE AND NOT WIN32 AND NOT SIMPLEBLE_PLAIN)
find_package(DBus1)
if(NOT TARGET dbus-1::dbus-1)
if(NOT TARGET dbus-1::dbus-1-headers-only)
return()
endif()
endif()
Expand Down

0 comments on commit d2eed9e

Please sign in to comment.