-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decide QT and KF versions based on KWin (#263)
* Decide QT and KF versions based on KWin * Fix private literal QString in KF6
- Loading branch information
1 parent
4c7ff62
commit 8464658
Showing
4 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
execute_process( | ||
COMMAND sh -c "ldconfig -v 2>&1 | awk '$1 ~ \"libkwin.so\" {print $3}' | cut -d '.' -f 3-" | ||
OUTPUT_VARIABLE KWIN_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE | ||
) | ||
message("-- KWin Version: ${KWIN_VERSION}") | ||
|
||
set(KF_MIN_VERSION "5.78") | ||
set(QT_MIN_VERSION "5.15") | ||
set(QT_MAJOR_VERSION 5) | ||
|
||
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) | ||
set(CMAKE_MODULE_PATH | ||
${CMAKE_MODULE_PATH} | ||
${ECM_MODULE_PATH} | ||
${ECM_KDE_MODULE_DIR} | ||
) | ||
if(ECM_VERSION VERSION_GREATER "5.200.0") | ||
if(KWIN_VERSION VERSION_GREATER "6") | ||
set(QT_MIN_VERSION "6.4.0") | ||
set(QT_MAJOR_VERSION 6) | ||
set(KF_MIN_VERSION ${ECM_VERSION}) | ||
set(KF_MIN_VERSION 6) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters