aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Haller <angelo@szanni.org>2022-12-01 14:05:37 -0500
committerAngelo Haller <angelo@szanni.org>2022-12-01 14:05:37 -0500
commitf5cf3313f6e6aeed97e1fcbc4198d26abd209dbb (patch)
tree1ea5d3d8eefb3619bc8540f4f6137e0bcdad7137
parent9d0ef119d9fcb9139f831adc224857b791c81140 (diff)
downloaddlfcn-win32-f5cf3313f6e6aeed97e1fcbc4198d26abd209dbb.tar.gz
dlfcn-win32-f5cf3313f6e6aeed97e1fcbc4198d26abd209dbb.tar.bz2
dlfcn-win32-f5cf3313f6e6aeed97e1fcbc4198d26abd209dbb.zip
Fix CMake include directive when using wrappers like meson.
-rw-r--r--src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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)
5add_library(dl ${sources}) 5add_library(dl ${sources})
6 6
7# Correctly export the location of installed includes in the target 7# Correctly export the location of installed includes in the target
8target_include_directories(dl INTERFACE $<INSTALL_INTERFACE:include>) 8target_include_directories(dl
9 PUBLIC
10 $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
11 $<INSTALL_INTERFACE:include>)
9 12
10# dot not add -D<target>_EXPORTS 13# dot not add -D<target>_EXPORTS
11set_target_properties(dl PROPERTIES DEFINE_SYMBOL "") 14set_target_properties(dl PROPERTIES DEFINE_SYMBOL "")