X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=f5bb920dca89f74f3e45944988f87a07973f57aa;hp=ebc626f37be35b8d29512afa2145cd8b1a6bccc5;hb=1a45f16a9734820fba42fe1db3f38dd1eee49df6;hpb=a7acde8447823f9cd5f25aae569a1ec3a0174073 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index ebc626f3..f5bb920d 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -56,8 +56,6 @@ target_sources(${TARGET} PRIVATE # needed for automoc irccap.h protocol.h - - ${COMMON_RCS} ) # Needed for finding the generated version.h @@ -91,6 +89,4 @@ if (APPLE) target_link_libraries(${TARGET} PUBLIC "-framework CoreServices" "-framework CoreFoundation") endif() -# This is needed so translations are generated before trying to build the qrc. -# Should probably find a nicer solution with proper dependencies between the involved files, though... -add_dependencies(${TARGET} po) +target_link_if_exists(${TARGET} PUBLIC Quassel::Resource::I18n)