Skip to content

Commit 4396ce8

Browse files
Merge pull request #337 from insertinterestingnamehere/cmake
Allow Building Static Lib With CMake
2 parents dd665ab + c3f424c commit 4396ce8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ else()
55
endif()
66

77
set(CMAKE_C_STANDARD 11)
8+
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build using shared libraries.")
89

910
if(CMAKE_VERSION VERSION_LESS "3.9.0")
1011
project(qthreads

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ set(QTHREADS_SOURCES
6060
patterns/wavefront.c
6161
)
6262

63-
add_library(qthread SHARED ${QTHREADS_SOURCES})
63+
add_library(qthread ${QTHREADS_SOURCES})
6464

6565
if ("${QTHREADS_CONTEXT_SWAP_IMPL}" STREQUAL "fastcontext")
6666
target_sources(qthread PRIVATE fastcontext/asm.S fastcontext/context.c)

0 commit comments

Comments
 (0)