Skip to content

Commit 154f2ba

Browse files
committed
cmake: Fix version comparison to find Qt6TextToSpeech
...at least with Qt >= 6.10. GREATER_EQUAL parses the passed value as a real number, not as a version with components, so for example 6.10.2 is returned as smaller than 6.4.0. But VERSION_GREATER_EQUAL exists exactly for such cases.
1 parent 2a75be7 commit 154f2ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ IF(APPLE AND Qt6_FOUND)
513513
ENDIF()
514514
IF(ENABLE_MEDIA)
515515
SET(STELLARIUM_QT_LIBRARIES ${STELLARIUM_QT_LIBRARIES} Qt${QT_VERSION_MAJOR}::Multimedia Qt${QT_VERSION_MAJOR}::MultimediaWidgets)
516-
IF(Qt6_FOUND AND Qt6Core_VERSION GREATER_EQUAL 6.4.0)
516+
IF(Qt6_FOUND AND Qt6Core_VERSION VERSION_GREATER_EQUAL 6.4.0)
517517
find_package(Qt6 COMPONENTS TextToSpeech)
518518
IF(Qt6TextToSpeech_VERSION VERSION_GREATER_EQUAL 6.4.0)
519519
SET(STELLARIUM_QT_LIBRARIES ${STELLARIUM_QT_LIBRARIES} Qt6::TextToSpeech)

0 commit comments

Comments
 (0)