From f38da08334d1dfb3cdd9fb5f795d6083d808c12a Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 28 May 2024 10:11:23 +0200 Subject: [PATCH] correct plugin target type --- external/CMakeLists.txt | 2 +- plugins/CMakeLists.txt | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 4d95052..38bdf26 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -53,7 +53,7 @@ endif() if (NOT TARGET httplib::httplib) FetchContent_Declare(httplib GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git - GIT_TAG master + GIT_TAG v0.15.3 EXCLUDE_FROM_ALL ) FetchContent_MakeAvailable(httplib) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index b2abfe6..31ad86e 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,11 +1,10 @@ cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR) -add_library(plugin_llama-cpp-web SHARED +add_library(plugin_llama-cpp-web MODULE ./plugin_llama-cpp-web.cpp ) set_target_properties(plugin_llama-cpp-web PROPERTIES C_VISIBILITY_PRESET hidden - POSITION_INDEPENDENT_CODE ON ) target_link_libraries(plugin_llama-cpp-web PUBLIC @@ -15,13 +14,12 @@ target_link_libraries(plugin_llama-cpp-web PUBLIC ######################################## -add_library(plugin_rpbot SHARED +add_library(plugin_rpbot MODULE ./plugin_rpbot.cpp ) set_target_properties(plugin_rpbot PROPERTIES C_VISIBILITY_PRESET hidden - POSITION_INDEPENDENT_CODE ON ) target_compile_definitions(plugin_rpbot PUBLIC ENTT_API_IMPORT)