From 9f34a13d44c45432bcc4df4cca3b1d29259e6502 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 23 May 2023 02:57:57 +0200 Subject: [PATCH] fix linking to dl --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc74c08..9561f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR) project(solanaceae) +#TODO: seperate into host and client add_library(solanaceae_plugin ./solanaceae/plugin/solana_plugin_v1.h ./solanaceae/plugin/plugin.hpp @@ -12,7 +13,8 @@ add_library(solanaceae_plugin target_include_directories(solanaceae_plugin PUBLIC .) target_compile_features(solanaceae_plugin PUBLIC cxx_std_17) -#target_link_libraries(solanaceae_plugin PUBLIC +target_link_libraries(solanaceae_plugin PUBLIC #solanaceae_core -#) + ${CMAKE_DL_LIBS} +)