--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:
parent
c459faba5a
commit
2c6bfdf0b8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue