Change library type (#31)
This commit is contained in:
Родитель
7a72b7a295
Коммит
c25bb4f445
|
@ -10,6 +10,7 @@ include(CTest)
|
|||
|
||||
set(WERROR true CACHE BOOL "Enable warnings as errors.")
|
||||
set(WALL true CACHE BOOL "Enable all warnings.")
|
||||
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries")
|
||||
|
||||
if(NOT WIN32)
|
||||
set(EXTRA_FLAGS "-std=c++11 -fPIC -DNO_SIGNALRCLIENT_EXPORTS")
|
||||
|
|
|
@ -29,7 +29,7 @@ include_directories(
|
|||
../../third_party_code/cpprestsdk
|
||||
../../third_party_code/jsoncpp)
|
||||
|
||||
add_library (signalrclient SHARED ${SOURCES})
|
||||
add_library (signalrclient ${SOURCES})
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
if(WERROR)
|
||||
|
|
Загрузка…
Ссылка в новой задаче