Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lighthomo
ncbind-krkrsdl2
buildfix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File buildfix.patch of Package ncbind-krkrsdl2
--- CMakeLists.txt.orig 2024-02-14 22:37:38.908502542 +0800 +++ CMakeLists.txt 2024-02-15 00:15:23.336217291 +0800 @@ -16,16 +16,9 @@ set(PLUGIN_SRC testbind.cpp) set(PLUGIN_INCLUDES include) -include(FetchContent) +include_directories(${INCLUDE_INSTALL_DIR}/tp_stub) -FetchContent_Declare( - krkrsdl2-tp_stub - URL https://github.com/krkrsdl2/krkrsdl2/releases/download/latest/krkrsdl2-tp_stub.tar.gz -) - -FetchContent_MakeAvailable(krkrsdl2-tp_stub) - -add_library(ncbind STATIC) +add_library(ncbind SHARED) set_target_properties(ncbind PROPERTIES CXX_STANDARD 11) set_target_properties(ncbind PROPERTIES POSITION_INDEPENDENT_CODE TRUE) target_sources(ncbind PRIVATE ncbind.cpp) @@ -37,7 +30,9 @@ -fPIC ) endif() - +install(TARGETS ${PLUGIN_DEPS} + DESTINATION ${CMAKE_INSTALL_LIBDIR} +) if(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten") add_executable(${PLUGIN_NAME}) set_target_properties(${PLUGIN_NAME} PROPERTIES SUFFIX ".so") @@ -89,9 +84,9 @@ project(${PROJECT_NAME} VERSION ${PROJECT_VERSION}) -add_subdirectory(../tp_stub ${CMAKE_CURRENT_BINARY_DIR}/tp_stub) -add_library(${PROJECT_NAME} STATIC + +add_library(${PROJECT_NAME} SHARED ncbind.cpp ncbind.hpp ncb_foreach.h
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor