From f5cf3313f6e6aeed97e1fcbc4198d26abd209dbb Mon Sep 17 00:00:00 2001 From: Angelo Haller Date: Thu, 1 Dec 2022 14:05:37 -0500 Subject: Fix CMake include directive when using wrappers like meson. --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 27f9030..9066e65 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,7 +5,10 @@ set(sources dlfcn.c) add_library(dl ${sources}) # Correctly export the location of installed includes in the target -target_include_directories(dl INTERFACE $) +target_include_directories(dl + PUBLIC + $ + $) # dot not add -D_EXPORTS set_target_properties(dl PROPERTIES DEFINE_SYMBOL "") -- cgit v1.2.3-55-g6feb