Skip to content

Commit

Permalink
Detect KDecoration2/Plasma 5.25 for Issue #64
Browse files Browse the repository at this point in the history
  • Loading branch information
Zren committed Jan 15, 2023
1 parent 4784647 commit ae15d3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/BuildConfig.h.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#cmakedefine01 HAVE_Wayland
#cmakedefine01 HAVE_X11
#cmakedefine01 HAVE_KDecoration2_5_25
#cmakedefine01 HAVE_KF5_101
11 changes: 10 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,22 @@ if(KF5Wayland_FOUND)
set(Wayland_LIBRARIES KF5::WaylandClient)
endif()


# KDecoration2/Plasma Version
if(${KDecoration2_VERSION} VERSION_GREATER_EQUAL "5.25.0")
set(HAVE_KDecoration2_5_25 ON)
else()
set(HAVE_KDecoration2_5_25 OFF)
endif()
message(STATUS "HAVE_KDecoration2_5_25: ${HAVE_KDecoration2_5_25} (${KDecoration2_VERSION})")

# KF5 Version
if(${KF5_VERSION} VERSION_GREATER_EQUAL "5.101.0")
set(HAVE_KF5_101 ON)
else()
set(HAVE_KF5_101 OFF)
endif()
message(STATUS "HAVE_KF5_101: ${HAVE_KF5_101}")
message(STATUS "HAVE_KF5_101: ${HAVE_KF5_101} (${KF5_VERSION})")


configure_file(BuildConfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/BuildConfig.h)
Expand Down

0 comments on commit ae15d3e

Please sign in to comment.