Skip to content

Commit 67822ca

Browse files
committed
Default to Qt5 when no QT_MAJOR_VERSION set
1 parent 38956a5 commit 67822ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ include(AsteroidCMakeSettings)
1919

2020
set(ASTEROID_MODULES_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/asteroidapp/cmake)
2121

22+
# TODO: wasn't there a better way especially with 5.15/6 like find_package(Qt COMPONENTS Core REQUIRED)
23+
if (NOT DEFINED QT_MAJOR_VERSION)
24+
set(QT_MAJOR_VERSION 5)
25+
endif()
2226
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} COMPONENTS DBus Qml Quick Svg REQUIRED)
2327
if (WITH_ASTEROIDAPP)
2428
find_package(Mlite${QT_MAJOR_VERSION} MODULE REQUIRED)

0 commit comments

Comments
 (0)