Skip to content

Commit 6be2504

Browse files
build: add support to build dylib as a shared lib (#92)
Signed-off-by: ClaudeTO80 <claudio.cavallero@gmail.com> Signed-off-by: Martin Olivier <martin.olivier@live.fr>
1 parent 05e2bc2 commit 6be2504

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ set(SOURCES
1414
src/format.cpp
1515
)
1616

17-
add_library(dylib STATIC ${SOURCES})
17+
add_library(dylib ${SOURCES})
18+
19+
if(BUILD_SHARED_LIBS AND WIN32)
20+
set_target_properties(dylib PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
21+
endif()
1822

1923
target_include_directories(dylib
2024
PUBLIC

0 commit comments

Comments
 (0)