Commit fd56c5fa authored by Kåre Särs's avatar Kåre Särs Committed by Christoph Cullmann
Browse files

Fix usage of QtSingleApplication on Windows and Apple

The USE_QT_SINGLE_APP define is used in kate-bin not kate-lib
parent 8ed4fd8e
......@@ -81,9 +81,13 @@ target_sources(
katewaiter.cpp
)
# Executable only adds the main definition.
add_executable(kate-bin main.cpp)
target_link_libraries(kate-bin PRIVATE kate-lib)
# Use a single application on MacOS + Windows instead of dbus.
if(APPLE OR WIN32)
target_compile_definitions(kate-lib PRIVATE USE_QT_SINGLE_APP)
target_compile_definitions(kate-bin PRIVATE USE_QT_SINGLE_APP)
target_sources(
kate-lib
......@@ -100,9 +104,6 @@ if(APPLE OR WIN32)
endif()
endif()
# Executable only adds the main definition.
add_executable(kate-bin main.cpp)
target_link_libraries(kate-bin PRIVATE kate-lib)
set(ICONS_PNG
${CMAKE_CURRENT_SOURCE_DIR}/icons/16-apps-kate.png
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment