Skip to content

Commit 97d0025

Browse files
deepin-mozartdeepin-bot[bot]
authored andcommitted
fix: update lxqt-build-tools package handling for compatibility with different versions
Log: Change-Id: I2d259541537474af7e422f610943ac6efdb4a1d6
1 parent ae59122 commit 97d0025

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

3rdparty/unioncode-qtermwidget-0.14.1/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ find_package(Qt${QT_VERSION_MAJOR}LinguistTools REQUIRED)
3535
if (${QT_VERSION_MAJOR} MATCHES 6)
3636
find_package(Qt6Core5Compat REQUIRED)
3737
endif()
38-
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
38+
# 兼容不同版本的lxqt-build-tools包名
39+
# 对于高版本系统(如lxqt 2.1.0+),包名为lxqt2-build-tools
40+
# 对于低版本系统(如lxqt 0.6.0),包名为lxqt-build-tools
41+
find_package(lxqt2-build-tools ${LXQTBT_MINIMUM_VERSION} QUIET)
42+
if(lxqt2-build-tools_FOUND)
43+
message(STATUS "Found lxqt2-build-tools package")
44+
else()
45+
find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
46+
message(STATUS "Found lxqt-build-tools package")
47+
endif()
3948

4049
if(USE_UTF8PROC)
4150
find_package(Utf8Proc REQUIRED)

0 commit comments

Comments
 (0)