Skip to content

Commit

Permalink
Merge pull request #1310 from gqrx-sdr/force-qt-version
Browse files Browse the repository at this point in the history
Allow the Qt version to be chosen explicitly
  • Loading branch information
argilo authored Oct 10, 2023
2 parents 898d120 + fe5b26e commit 92e4257
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 12 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,20 @@ else()
endif()

# 3rd Party Dependency Stuff
find_package(Qt6 QUIET COMPONENTS Core Network Widgets Svg SvgWidgets)
if(NOT Qt6_FOUND)
option(FORCE_QT6 "Force Qt6 to be used" OFF)
option(FORCE_QT5 "Force Qt5 to be used" OFF)

if(FORCE_QT6)
find_package(Qt6 QUIET COMPONENTS Core Network Widgets Svg SvgWidgets)
elseif(FORCE_QT5)
find_package(Qt5 REQUIRED COMPONENTS Core Network Widgets Svg)
else()
find_package(Qt6 QUIET COMPONENTS Core Network Widgets Svg SvgWidgets)
if(NOT Qt6_FOUND)
find_package(Qt5 REQUIRED COMPONENTS Core Network Widgets Svg)
endif()
endif()

include(FindPkgConfig)
find_package(Gnuradio-osmosdr REQUIRED)

Expand Down
5 changes: 5 additions & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

2.17.2: In progress...

NEW: FORCE_QT6 and FORCE_QT5 CMake options to force Qt version.


2.17.1: Released October 9, 2023

NEW: Delete key clears the waterfall.
Expand Down

0 comments on commit 92e4257

Please sign in to comment.