aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Traversaro <silvio@traversaro.it>2022-12-02 00:39:04 +0100
committerGitHub <noreply@github.com>2022-12-02 00:39:04 +0100
commit8dceebdac727a2f9d7022a71b7800589e662d9b8 (patch)
tree1ea5d3d8eefb3619bc8540f4f6137e0bcdad7137
parent9d0ef119d9fcb9139f831adc224857b791c81140 (diff)
parentf5cf3313f6e6aeed97e1fcbc4198d26abd209dbb (diff)
downloaddlfcn-win32-8dceebdac727a2f9d7022a71b7800589e662d9b8.tar.gz
dlfcn-win32-8dceebdac727a2f9d7022a71b7800589e662d9b8.tar.bz2
dlfcn-win32-8dceebdac727a2f9d7022a71b7800589e662d9b8.zip
Merge pull request #106 from szanni/cmake-fix-wrapper-include
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 "")