diff options
author | Even Rouault <even.rouault@spatialys.com> | 2023-01-18 19:42:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-18 21:26:24 (GMT) |
commit | b4be6077013198387b2522c857f96a1bc071756e (patch) | |
tree | 6214965d941b4d85fb4c3268873672a2669be87d /Modules | |
parent | 20bbd5f3d3b63fcf1f62e1df3ec8ce3ba30d288b (diff) | |
download | CMake-b4be6077013198387b2522c857f96a1bc071756e.zip CMake-b4be6077013198387b2522c857f96a1bc071756e.tar.gz CMake-b4be6077013198387b2522c857f96a1bc071756e.tar.bz2 |
FindLibLZMA: Fix failure when no include directories are needed
Quote the value of `INTERFACE_INCLUDE_DIRECTORIES` to ensure
`set_target_properties` gets matching property/value pairs.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindLibLZMA.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindLibLZMA.cmake b/Modules/FindLibLZMA.cmake index c298bab..1b3929b 100644 --- a/Modules/FindLibLZMA.cmake +++ b/Modules/FindLibLZMA.cmake @@ -117,7 +117,7 @@ if (LIBLZMA_FOUND) if(NOT TARGET LibLZMA::LibLZMA) add_library(LibLZMA::LibLZMA UNKNOWN IMPORTED) set_target_properties(LibLZMA::LibLZMA PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES ${LIBLZMA_INCLUDE_DIR} + INTERFACE_INCLUDE_DIRECTORIES "${LIBLZMA_INCLUDE_DIR}" IMPORTED_LINK_INTERFACE_LANGUAGES C) if(LIBLZMA_LIBRARY_RELEASE) |