Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39d4906

Browse files
arun bharadwajjohn-forrest
authored andcommitted
Alway build static library
(cherry picked from commit 0756800) [Minor edit] (cherry picked from commit 15f69d7) (cherry picked from commit c5b2897)
1 parent 234d560 commit 39d4906

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ option (BUILD_C_API "Build the C-API" OFF)
1212
option (BUILD_EXPERIMENTAL_API "Build with experimental API" OFF)
1313
set(BUILD_DEPENDENCIES "AUTO" CACHE STRING "Fetch from github or use locally installed (AUTO/GITHUB/LOCAL)")
1414

15-
if (WIN32)
16-
option (BUILD_SHARED_LIBS "Build and link as shared library" OFF)
17-
else()
18-
option (BUILD_SHARED_LIBS "Build and link as shared library" ON)
19-
endif()
15+
option (BUILD_SHARED_LIBS "Build and link as shared library" OFF)
2016

2117
if (MSVC)
2218
add_definitions (-DUNICODE -D_UNICODE -D_CRT_SECURE_NO_WARNINGS)

0 commit comments

Comments
 (0)