forked from osmocom/wireshark
CMake: try to fix duplicate qm builds on Windows
The Windows buildbot showed that .qm files are generated twice. This resulted in rebuilding i18n.cpp, which resulted in rebuilding qtui, which finally resulted in Wireshark.exe being built twice for no reason. Assuming it is the same issue as commit v2.3.0rc0-3078-gaa9a0b3bf8, avoid having multiple targets depend on the same output (.qm files). This patch requires CMake 3.1 or newer. Change-Id: Iffd8946701553b89c09504278afa4b16d2a0b5b4 Fixes: v2.5.0rc0-1366-gdfa893b1cf ("cmake: set CMAKE_AUTOUIC and CMAKE_AUTORCC to avoid CMP0071 warning") Reviewed-on: https://code.wireshark.org/review/27620 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
64ef1ca87f
commit
644939ed9e
|
@ -605,7 +605,7 @@ set(WIRESHARK_QT_QRC_SRC ${WIRESHARK_QT_QRC})
|
|||
QT5_ADD_TRANSLATION(WIRESHARK_QT_QM ${WIRESHARK_QT_TS})
|
||||
|
||||
add_custom_target(
|
||||
translations ALL
|
||||
translations
|
||||
DEPENDS
|
||||
${WIRESHARK_QT_QM}
|
||||
)
|
||||
|
@ -654,7 +654,6 @@ add_library(qtui STATIC
|
|||
${WIRESHARK_QT_QRC_SRC}
|
||||
wireshark-tap-register.c
|
||||
)
|
||||
add_dependencies(qtui translations)
|
||||
set_target_properties(qtui PROPERTIES
|
||||
LINK_FLAGS "${WS_LINK_FLAGS}"
|
||||
FOLDER "UI"
|
||||
|
|
Loading…
Reference in New Issue