forked from osmocom/wireshark
cmake: fix Qt build with CMake 3.0.0 and 3.0.1
AUTOUIC fails to generate some ui_*.h files because of a bug that was fixed in CMake 3.0.2: https://cmake.org/Bug/view.php?id=14981 Change-Id: I964d991c7edefcea55ae43b0768a7fd3503f94a9 Fixes: v2.5.0rc0-1366-gdfa893b1cf ("cmake: set CMAKE_AUTOUIC and CMAKE_AUTORCC to avoid CMP0071 warning") Reviewed-on: https://code.wireshark.org/review/23993 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
fd1d13567d
commit
4273eced0c
|
@ -556,7 +556,7 @@ include_directories(
|
|||
|
||||
SET(CMAKE_AUTOMOC TRUE)
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS "3.0")
|
||||
if(CMAKE_VERSION VERSION_LESS "3.0.2")
|
||||
# AUTOUIC and AUTORCC are not supported in CMAKE 2.8.x
|
||||
if (QT_VERSION EQUAL 5)
|
||||
QT5_ADD_TRANSLATION(WIRESHARK_QT_QM ${WIRESHARK_QT_TS})
|
||||
|
@ -631,7 +631,7 @@ set_target_properties(qtui PROPERTIES
|
|||
LINK_FLAGS "${WS_LINK_FLAGS}"
|
||||
FOLDER "UI"
|
||||
)
|
||||
if(NOT CMAKE_VERSION VERSION_LESS "3.0")
|
||||
if(NOT CMAKE_VERSION VERSION_LESS "3.0.2")
|
||||
# Ensure .qm files are generated before autogenerating i18n.qrc
|
||||
set_target_properties(qtui PROPERTIES
|
||||
AUTOGEN_TARGET_DEPENDS "${WIRESHARK_QT_QM}"
|
||||
|
|
Loading…
Reference in New Issue