From 63819d62f089c319ea5071c611059aa565aa6e33 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Tue, 23 Feb 2021 09:48:33 +0100 Subject: [PATCH] cmake: Use set_target_properties for include dirs target_include_directories for INTERFACE IMPORTED targets is only supported since cmake 3.11 Fixes #2387 Ref: https://gitlab.kitware.com/cmake/cmake/-/issues/15689 --- cmake/common/utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/common/utils.cmake b/cmake/common/utils.cmake index 973e85c9..7a748d80 100644 --- a/cmake/common/utils.cmake +++ b/cmake/common/utils.cmake @@ -117,8 +117,8 @@ function(create_imported_target library_name includes libraries) add_library(${library_name} INTERFACE IMPORTED) set_target_properties(${library_name} PROPERTIES INTERFACE_LINK_LIBRARIES "${libraries}" + INTERFACE_INCLUDE_DIRECTORIES "${includes}" ) - target_include_directories(${library_name} SYSTEM INTERFACE ${includes}) endfunction() # }}} # checklib {{{