Skip to content

Commit

Permalink
Use list in CMakeFiles instead of set
Browse files Browse the repository at this point in the history
  • Loading branch information
ya-isakov committed Jun 29, 2022
1 parent 052fa52 commit d51dfab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ include(CLangFormat)
set(QT_COMPONENTS Core Network Concurrent Gui Svg Widgets Test LinguistTools)
if(UNIX AND NOT APPLE)
if(WITH_XC_X11)
set(QT_COMPONENTS ${QT_COMPONENTS} X11Extras)
list(APPEND QT_COMPONENTS X11Extras)
endif()
find_package(Qt5 COMPONENTS ${QT_COMPONENTS} DBus REQUIRED)
elseif(APPLE)
Expand Down
5 changes: 2 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ if(UNIX AND NOT APPLE)
gui/osutils/nixutils/ScreenLockListenerDBus.cpp
gui/osutils/nixutils/NixUtils.cpp)
if(WITH_XC_X11)
set(keepassx_SOURCES
${keepassx_SOURCES}
list(APPEND keepassx_SOURCES
gui/osutils/nixutils/X11Funcs.cpp)
endif()
qt5_add_dbus_adaptor(keepassx_SOURCES
Expand Down Expand Up @@ -365,7 +364,7 @@ endif()
if(UNIX AND NOT APPLE)
target_link_libraries(keepassx_core Qt5::DBus)
if(WITH_XC_X11)
target_link_libraries(keepassx_core Qt5::DBus Qt5::X11Extras X11)
target_link_libraries(keepassx_core Qt5::X11Extras X11)
endif()
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
endif()
Expand Down
2 changes: 0 additions & 2 deletions src/gui/osutils/nixutils/NixUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ bool NixUtils::isCapslockEnabled()

void NixUtils::registerNativeEventFilter()
{
#ifdef WITH_XC_X11
qApp->installNativeEventFilter(this);
#endif
}

bool NixUtils::nativeEventFilter(const QByteArray& eventType, void* message, long*)
Expand Down

0 comments on commit d51dfab

Please sign in to comment.