Skip to content

Commit

Permalink
findDependencies.cmake: get the actual Qt6 version
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed May 21, 2024
1 parent 140e5a9 commit 7206837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/findDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ if(BUILD_GUI)
endif()
if(USE_QT6)
find_package(Qt6 COMPONENTS ${qt_components} REQUIRED)
set(QT_VERSION "${Qt6Core_VERSION_STRING}")
set(QT_VERSION "${Qt6Core_VERSION}")
if(NOT QT_VERSION)
# TODO: how to get the actual version?
message(WARNING "'Qt6Core_VERSION_STRING' is not set - using 6.0.0 as fallback")
# TODO: remove fallback
message(WARNING "'Qt6Core_VERSION' is not set - using 6.0.0 as fallback")
set(QT_VERSION "6.0.0")
endif()
if(MSVC)
Expand Down

0 comments on commit 7206837

Please sign in to comment.