Skip to content

Commit

Permalink
Default to shared libraries also on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro committed Sep 29, 2024
1 parent 82b84f4 commit 9530d07
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ include(AddWarningsConfigurationToTarget)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

# Shared/Dynamic or Static library?
if(MSVC)
option(BUILD_SHARED_LIBS "Build libraries as shared as opposed to static" OFF)
else()
option(BUILD_SHARED_LIBS "Build libraries as shared as opposed to static" ON)
endif()
option(BUILD_SHARED_LIBS "Build libraries as shared as opposed to static" ON)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

Expand Down

0 comments on commit 9530d07

Please sign in to comment.