correct plugin target type

This commit is contained in:
Green Sky 2024-05-28 10:11:23 +02:00
parent 85e2b633db
commit f38da08334
No known key found for this signature in database
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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)