--warning

Set -DLIBINPUT_HAS_TOTEM per file rather than per target so that all
targets that build it have the define.
This particular file is also used by some tests and this fixes the
warning that this ifdef resolves at once for all targets.
This commit is contained in:
Aleix Pol 2020-12-11 18:29:15 +01:00 committed by Aleix Pol Gonzalez
parent c459faba5a
commit 2c6bfdf0b8

View file

@ -705,7 +705,7 @@ set(kwinLibs
add_library(kwin SHARED ${kwin_SRCS})
if (Libinput_VERSION_STRING VERSION_GREATER 1.14)
target_compile_definitions(kwin PRIVATE -DLIBINPUT_HAS_TOTEM)
set_source_files_properties(libinput/connection.cpp PROPERTIES COMPILE_DEFINITIONS LIBINPUT_HAS_TOTEM)
endif ()
set_target_properties(kwin PROPERTIES