Skip to content

Commit

Permalink
Merge pull request #98 from bjia56/static-libpeer
Browse files Browse the repository at this point in the history
build: allow configuring static/shared libpeer builds
  • Loading branch information
sepfy authored Aug 25, 2024
2 parents 6b61c88 + 1a73c78 commit 385abdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.1)
project(peer)

option(ENABLE_TESTS "Enable tests" OFF)
option(BUILD_SHARED_LIBS "Build shared libraries" ON)

include(ExternalProject)
include(third_party/coreHTTP/httpFilePaths.cmake)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ file(GLOB SRCS "*.c")

file(GLOB HEADERS "peer.h" "peer_connection.h" "peer_signaling.h")

add_library(peer SHARED
add_library(peer
${SRCS}
${HTTP_SOURCES}
${MQTT_SOURCES}
Expand Down

0 comments on commit 385abdf

Please sign in to comment.