Skip to content

Commit 24227d4

Browse files
cyyeverfacebook-github-bot
authored andcommitted
Enable Windows shared libary builds by exporting all symbols (#1130)
Summary: Pull Request resolved: #1130 Reviewed By: aaronenyeshi Differential Revision: D81145587 Pulled By: sraikund16 fbshipit-source-id: 5c84142c2db5f1c1a4adbd7a163b2db529f77de9
1 parent fe80f93 commit 24227d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libkineto/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ if(KINETO_LIBRARY_TYPE STREQUAL "static")
224224
set(BUILD_SHARED_LIBS OFF)
225225
elseif(KINETO_LIBRARY_TYPE STREQUAL "shared")
226226
set(BUILD_SHARED_LIBS ON)
227+
set(WINDOWS_EXPORT_ALL_SYMBOLS ON)
227228
elseif(NOT KINETO_LIBRARY_TYPE STREQUAL "default")
228229
message(FATAL_ERROR "Unsupported library type ${KINETO_LIBRARY_TYPE}")
229230
endif()

0 commit comments

Comments
 (0)