This commit is contained in:
blueloveTH 2025-01-18 22:35:50 +08:00
parent 26871253a1
commit 88ee39cd32
3 changed files with 3 additions and 2 deletions

View File

@ -93,7 +93,7 @@ jobs:
uses: jirutka/setup-alpine@v1
with:
arch: x86
packages: gcc g++ make cmake libc-dev linux-headers python3 openssl-dev
packages: gcc g++ make cmake libc-dev linux-headers python3
- name: Build and Test
run: |
uname -m

View File

@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.10)
project(libhv_bindings)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 14)

View File

@ -78,7 +78,6 @@ option(PK_BUILD_STATIC_MAIN "Build static main" OFF)
if(PK_BUILD_SHARED_LIB)
message(">> Building shared library")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_library(${PROJECT_NAME} SHARED ${POCKETPY_SRC})
elseif(PK_BUILD_STATIC_LIB)
message(">> Building static library")