diff options
| author | Angelo Haller <angelo@szanni.org> | 2022-12-01 14:05:37 -0500 |
|---|---|---|
| committer | Angelo Haller <angelo@szanni.org> | 2022-12-01 14:05:37 -0500 |
| commit | f5cf3313f6e6aeed97e1fcbc4198d26abd209dbb (patch) | |
| tree | 1ea5d3d8eefb3619bc8540f4f6137e0bcdad7137 | |
| parent | 9d0ef119d9fcb9139f831adc224857b791c81140 (diff) | |
| download | dlfcn-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.txt | 5 |
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) | |||
| 5 | add_library(dl ${sources}) | 5 | add_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 |
| 8 | target_include_directories(dl INTERFACE $<INSTALL_INTERFACE:include>) | 8 | target_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 |
| 11 | set_target_properties(dl PROPERTIES DEFINE_SYMBOL "") | 14 | set_target_properties(dl PROPERTIES DEFINE_SYMBOL "") |
