From 68dbd5e5f589f6f648e917851e901c538c8d314c Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sat, 23 Dec 2023 11:28:18 +0100 Subject: Add support to consume library via CMake's FetchContent --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) add_library(dl ${sources}) +# Support for FetchContent workflow +add_library(dlfcn-win32::dl ALIAS dl) # Correctly export the location of installed includes in the target target_include_directories(dl -- cgit v1.2.3-55-g6feb