Skip to content

Commit

Permalink
Fix build when USE_SYSTEMD=Off
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Nov 18, 2024
1 parent 4598563 commit ed335d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ foreach(CANDIDATE_EVENT_LOOP_BACKEND IN LISTS CANDIDATE_EVENT_LOOP_BACKENDS)
endif()
endif()

if (TARGET LIBUV_TARGET)
if (TARGET "${LIBUV_TARGET}")
set(FCITX_EVENT_LOOP_BACKEND "libuv")
break()
endif()
Expand All @@ -102,7 +102,7 @@ if (ENABLE_DBUS AND NOT (FCITX_EVENT_LOOP_BACKEND STREQUAL systemd))
endif()

if (FCITX_EVENT_LOOP_BACKEND STREQUAL "")
message(FATAL_ERROR "Failed to find a valid event loop backend.")
message(FATAL_ERROR "Failed to find a valid event loop backend. Backends checked: ${CANDIDATE_EVENT_LOOP_BACKENDS}")
endif()

if (USE_FLATPAK_ICON)
Expand Down

0 comments on commit ed335d8

Please sign in to comment.