Skip to content

Commit c25bb4f

Browse files
Change library type (#31)
1 parent 7a72b7a commit c25bb4f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include(CTest)
1010

1111
set(WERROR true CACHE BOOL "Enable warnings as errors.")
1212
set(WALL true CACHE BOOL "Enable all warnings.")
13+
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries")
1314

1415
if(NOT WIN32)
1516
set(EXTRA_FLAGS "-std=c++11 -fPIC -DNO_SIGNALRCLIENT_EXPORTS")

src/signalrclient/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ include_directories(
2929
../../third_party_code/cpprestsdk
3030
../../third_party_code/jsoncpp)
3131

32-
add_library (signalrclient SHARED ${SOURCES})
32+
add_library (signalrclient ${SOURCES})
3333

3434
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
3535
if(WERROR)

0 commit comments

Comments
 (0)