summaryrefslogtreecommitdiff
path: root/Modules/FindLibinput.cmake
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2018-10-16 15:56:09 +0200
committerBrad King <brad.king@kitware.com>2018-10-16 11:07:41 -0400
commit0c20d4d67b1f5da52da283f4237fb85a29385acd (patch)
treeb1bc47fd28c82f771f9a2cf30f801079fd1f7dfd /Modules/FindLibinput.cmake
parent92f3ad7caebe6922a6b682cbb8c8d687cbfc8256 (diff)
downloadcmake-0c20d4d67b1f5da52da283f4237fb85a29385acd.tar.gz
FindLibinput: Use _COMPILE_OPTIONS instead of _DEFINITIONS
The value may contain flags.
Diffstat (limited to 'Modules/FindLibinput.cmake')
-rw-r--r--Modules/FindLibinput.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindLibinput.cmake b/Modules/FindLibinput.cmake
index df66cfff29..1057c91bf6 100644
--- a/Modules/FindLibinput.cmake
+++ b/Modules/FindLibinput.cmake
@@ -26,7 +26,7 @@ This will define the following variables in your project:
the libraries to link against to use libinput.
``Libinput_INCLUDE_DIRS``
where to find the libinput headers.
-``Libinput_DEFINITIONS``
+``Libinput_COMPILE_OPTIONS``
this should be passed to target_compile_options(), if the
target is not used for linking
@@ -38,7 +38,7 @@ This will define the following variables in your project:
find_package(PkgConfig QUIET)
pkg_check_modules(PKG_Libinput QUIET libinput)
-set(Libinput_DEFINITIONS ${PKG_Libinput_CFLAGS_OTHER})
+set(Libinput_COMPILE_OPTIONS ${PKG_Libinput_CFLAGS_OTHER})
set(Libinput_VERSION ${PKG_Libinput_VERSION})
find_path(Libinput_INCLUDE_DIR
@@ -69,7 +69,7 @@ if(Libinput_FOUND AND NOT TARGET Libinput::Libinput)
add_library(Libinput::Libinput UNKNOWN IMPORTED)
set_target_properties(Libinput::Libinput PROPERTIES
IMPORTED_LOCATION "${Libinput_LIBRARY}"
- INTERFACE_COMPILE_OPTIONS "${Libinput_DEFINITIONS}"
+ INTERFACE_COMPILE_OPTIONS "${Libinput_COMPILE_OPTIONS}"
INTERFACE_INCLUDE_DIRECTORIES "${Libinput_INCLUDE_DIR}"
)
endif()