correct plugin target type
This commit is contained in:
parent
85e2b633db
commit
f38da08334
2
external/CMakeLists.txt
vendored
2
external/CMakeLists.txt
vendored
@ -53,7 +53,7 @@ endif()
|
|||||||
if (NOT TARGET httplib::httplib)
|
if (NOT TARGET httplib::httplib)
|
||||||
FetchContent_Declare(httplib
|
FetchContent_Declare(httplib
|
||||||
GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git
|
GIT_REPOSITORY https://github.com/yhirose/cpp-httplib.git
|
||||||
GIT_TAG master
|
GIT_TAG v0.15.3
|
||||||
EXCLUDE_FROM_ALL
|
EXCLUDE_FROM_ALL
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(httplib)
|
FetchContent_MakeAvailable(httplib)
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
|
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
|
./plugin_llama-cpp-web.cpp
|
||||||
)
|
)
|
||||||
set_target_properties(plugin_llama-cpp-web PROPERTIES
|
set_target_properties(plugin_llama-cpp-web PROPERTIES
|
||||||
C_VISIBILITY_PRESET hidden
|
C_VISIBILITY_PRESET hidden
|
||||||
POSITION_INDEPENDENT_CODE ON
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(plugin_llama-cpp-web PUBLIC
|
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
|
./plugin_rpbot.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(plugin_rpbot PROPERTIES
|
set_target_properties(plugin_rpbot PROPERTIES
|
||||||
C_VISIBILITY_PRESET hidden
|
C_VISIBILITY_PRESET hidden
|
||||||
POSITION_INDEPENDENT_CODE ON
|
|
||||||
)
|
)
|
||||||
target_compile_definitions(plugin_rpbot PUBLIC ENTT_API_IMPORT)
|
target_compile_definitions(plugin_rpbot PUBLIC ENTT_API_IMPORT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user