Skip to content

Commit 5095b40

Browse files
Merge pull request #275 from paullouisageneau/cmake-build-shared-libs
CMake: Comply with BUILD_SHARED_LIBS option
2 parents 658ec6b + 6a0f06e commit 5095b40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ project (libjuice
44
LANGUAGES C)
55
set(PROJECT_DESCRIPTION "UDP Interactive Connectivity Establishment (ICE) library")
66

7+
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
78
option(USE_NETTLE "Use Nettle for hash functions" OFF)
89
option(NO_SERVER "Disable server support" OFF)
910
option(NO_TESTS "Disable tests build" OFF)
@@ -89,7 +90,7 @@ source_group("Fuzzer Files" FILES "${FUZZER_SOURCES}")
8990
set(THREADS_PREFER_PTHREAD_FLAG ON)
9091
find_package(Threads REQUIRED)
9192

92-
add_library(juice SHARED ${LIBJUICE_SOURCES})
93+
add_library(juice ${LIBJUICE_SOURCES})
9394
set_target_properties(juice PROPERTIES VERSION ${PROJECT_VERSION})
9495
target_include_directories(juice PUBLIC
9596
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>

0 commit comments

Comments
 (0)