From b073520076fdbf19d949545ca278afa8149b9e1a Mon Sep 17 00:00:00 2001 From: nekobit Date: Sun, 11 Dec 2022 00:23:01 +0000 Subject: [PATCH] Fix link (hack?) FossilOrigin-Name: fc0af9bbe616495af6c20bef483ec3dc83649443bc64f0fcc54a724d8067530e --- CMakeLists.txt | 1 - cmake/mastodont-config.cmake | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 313eef0..9f07fc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,6 @@ target_link_options(mastodont PUBLIC target_include_directories(mastodont PUBLIC include/ ${CURL_INCLUDE_DIRS} - PRIVATE libs/ ) diff --git a/cmake/mastodont-config.cmake b/cmake/mastodont-config.cmake index a47726a..31139b0 100644 --- a/cmake/mastodont-config.cmake +++ b/cmake/mastodont-config.cmake @@ -3,9 +3,12 @@ set(MASTODONT_FOUND) set(MASTODONT_VERSION 0.1) # Get parent directory of this config file +find_package(CURL REQUIRED) set(MASTODONT_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../include" "${CMAKE_CURRENT_LIST_DIR}/../libs" ) -set(MASTODONT_LIBRARIES "mastodont") +set(MASTODONT_LIBRARIES "mastodont" "curl") + +