Skip to content

Commit 5df2b1b

Browse files
committed
cmake: on windows build a dll
1 parent 08b0bf2 commit 5df2b1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ if(UNIX)
5454
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${CMAKE_BINARY_DIR}/${OutputConfig}/${CMAKE_INSTALL_BINDIR})
5555
endforeach()
5656
else()
57-
# Currently Only support static build for windows
58-
option(BUILD_SHARED_LIBS "Build shared libraries (.dll)." OFF)
57+
option(BUILD_SHARED_LIBS "Build shared libraries (.dll)." ON)
5958
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
6059
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
6160
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})

0 commit comments

Comments
 (0)