Skip to content

Commit 155b555

Browse files
committed
Fix libB_vendor missing import lib on MSVC
1 parent ec5d451 commit 155b555

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/libB_example/libB_source/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ target_include_directories(libB_vendor PUBLIC
77
${CMAKE_SOURCE_DIR}/examples/libB_example/prebuilt/include
88
)
99

10-
# No post-build copy — the artifact lands in CMAKE_LIBRARY_OUTPUT_DIRECTORY
11-
# alongside all other shared libraries (build/bin/).
10+
# On MSVC, generate an import library even without __declspec(dllexport).
11+
set_target_properties(libB_vendor PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)

0 commit comments

Comments
 (0)