We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae59122 commit 97d0025Copy full SHA for 97d0025
1 file changed
3rdparty/unioncode-qtermwidget-0.14.1/CMakeLists.txt
@@ -35,7 +35,16 @@ find_package(Qt${QT_VERSION_MAJOR}LinguistTools REQUIRED)
35
if (${QT_VERSION_MAJOR} MATCHES 6)
36
find_package(Qt6Core5Compat REQUIRED)
37
endif()
38
-find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
+# 兼容不同版本的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()
48
49
if(USE_UTF8PROC)
50
find_package(Utf8Proc REQUIRED)
0 commit comments