Use QT_DEFAULT_MAJOR_VERSION

This commit is contained in:
Hennadii Chernyshchyk
2021-10-28 23:47:14 +03:00
parent 64fec66d35
commit fcf83f3e36
3 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -7,5 +7,5 @@ add_executable(HotkeyTest
hottestwidget.cpp
hottestwidget.ui)
find_package(Qt${QT_MAJOR} COMPONENTS Widgets REQUIRED)
target_link_libraries(HotkeyTest Qt${QT_MAJOR}::Widgets QHotkey::QHotkey)
find_package(Qt${QT_DEFAULT_MAJOR_VERSION} COMPONENTS Widgets REQUIRED)
target_link_libraries(HotkeyTest Qt${QT_DEFAULT_MAJOR_VERSION}::Widgets QHotkey::QHotkey)