Skip to content

Commit

Permalink
find package also for Qt6 (#574)
Browse files Browse the repository at this point in the history
fix linuxdeployqt makefile: use Qt${QT_VERSION_MAJOR} instead of Qt5
  • Loading branch information
NissimBendanan committed Apr 23, 2023
1 parent edbf092 commit 8428c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/linuxdeployqt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ add_definitions("-DLINUXDEPLOYQT_GIT_COMMIT=\"${GIT_COMMIT}\"")
add_definitions("-DBUILD_DATE=\"${DATE}\"")
add_definitions("-DBUILD_NUMBER=\"${BUILD_NUMBER}\"")

find_package(Qt5 REQUIRED COMPONENTS Core)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)

# update excludelist
message(STATUS "Updating excludelist...")
Expand All @@ -26,5 +26,5 @@ mark_as_advanced(EXCLUDELIST EXCLUDELIST_RESULT)

add_executable(linuxdeployqt main.cpp shared.cpp)
target_include_directories(linuxdeployqt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(linuxdeployqt Qt5::Core)
target_link_libraries(linuxdeployqt Qt${QT_VERSION_MAJOR}::Core)
target_compile_definitions(linuxdeployqt PRIVATE -DEXCLUDELIST="${EXCLUDELIST}")

0 comments on commit 8428c59

Please sign in to comment.