[plasma/kwin] autotests/integration: Fix build with -Werror=undef
David Faure <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 66adfb57b12a3739f5ffac168f81732dc1f93483 by David Faure.
Committed on 17/07/2026 at 12:38.
Pushed by dfaure into branch 'master'.
Fix build with -Werror=undef
(`#if EIS_HAVE_16` needs it to be defined to 0, not undefined)
M +4 -1 autotests/integration/CMakeLists.txt
https://invent.kde.org/plasma/kwin/-/commit/66adfb57b12a3739f5ffac168f81732dc1f93483
diff --git a/autotests/integration/CMakeLists.txt b/autotests/integration/CMakeLists.txt
index 1a14df6d40b..ed7227bede2 100644
--- a/autotests/integration/CMakeLists.txt
+++ b/autotests/integration/CMakeLists.txt
@@ -218,8 +218,11 @@ if (KWIN_BUILD_EIS)
integrationTest(NAME testInputCapture SRCS input_capture_test.cpp LIBS PkgConfig::PKG_libei PROPERTIES RUN_SERIAL TRUE)
integrationTest(NAME testLibeiInput SRCS libei_test.cpp LIBS PkgConfig::PKG_libei PROPERTIES RUN_SERIAL TRUE)
if (PKG_libei_VERSION VERSION_GREATER_EQUAL "1.6")
- target_compile_definitions(testLibeiInput PRIVATE -DEIS_HAVE_16=1)
+ set(EIS_HAVE_16 1)
+ else()
+ set(EIS_HAVE_16 0)
endif()
+ target_compile_definitions(testLibeiInput PRIVATE -DEIS_HAVE_16=${EIS_HAVE_16})
endif()