diff options
author | Silvio Traversaro <silvio@traversaro.it> | 2023-12-23 11:28:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-23 11:28:18 +0100 |
commit | 68dbd5e5f589f6f648e917851e901c538c8d314c (patch) | |
tree | a807fe43d019252836dedcc2026cf46f70458724 /src/CMakeLists.txt | |
parent | 048bff80f2bd00bb651bcc3357cb6f76e3d76fd5 (diff) | |
download | dlfcn-win32-fix49.tar.gz dlfcn-win32-fix49.tar.bz2 dlfcn-win32-fix49.zip |
Add support to consume library via CMake's FetchContentfix49
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9066e65..cdaf2a5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
@@ -3,6 +3,8 @@ set(sources dlfcn.c) | |||
3 | 3 | ||
4 | 4 | ||
5 | add_library(dl ${sources}) | 5 | add_library(dl ${sources}) |
6 | # Support for FetchContent workflow | ||
7 | add_library(dlfcn-win32::dl ALIAS dl) | ||
6 | 8 | ||
7 | # Correctly export the location of installed includes in the target | 9 | # Correctly export the location of installed includes in the target |
8 | target_include_directories(dl | 10 | target_include_directories(dl |