File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ add_definitions("-DLINUXDEPLOYQT_GIT_COMMIT=\"${GIT_COMMIT}\"")
99add_definitions ("-DBUILD_DATE=\" ${DATE} \" " )
1010add_definitions ("-DBUILD_NUMBER=\" ${BUILD_NUMBER} \" " )
1111
12- find_package (Qt5 REQUIRED COMPONENTS Core)
12+ find_package (QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
1313
1414# update excludelist
1515message (STATUS "Updating excludelist..." )
@@ -26,5 +26,5 @@ mark_as_advanced(EXCLUDELIST EXCLUDELIST_RESULT)
2626
2727add_executable (linuxdeployqt main.cpp shared.cpp)
2828target_include_directories (linuxdeployqt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
29- target_link_libraries (linuxdeployqt Qt5 ::Core)
29+ target_link_libraries (linuxdeployqt Qt ${QT_VERSION_MAJOR} ::Core)
3030target_compile_definitions (linuxdeployqt PRIVATE -DEXCLUDELIST="${EXCLUDELIST} " )
You can’t perform that action at this time.
0 commit comments