Skip to content

Commit 930a160

Browse files
committedJun 5, 2023
Export symbols with MSVC & stop forcing prefix.
Change-Id: I25551c16a1d81db043a9bea175c899c915db7051
1 parent 9855450 commit 930a160

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎CMakeLists.txt

+1-7
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ add_cxx_preproc_definition("__STDC_LIMIT_MACROS")
4141
include_directories("${LIBWEBM_SRC_DIR}")
4242

4343
if (MSVC)
44+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
4445
add_cxx_flag_if_supported("/W4")
4546
# Disable MSVC warnings that suggest making code non-portable.
4647
add_cxx_flag_if_supported("/wd4996")
@@ -350,13 +351,6 @@ add_library(webm ${libwebm_common_sources}
350351
$<TARGET_OBJECTS:mkvmuxer>
351352
$<TARGET_OBJECTS:mkvparser>)
352353

353-
if (WIN32)
354-
# Use libwebm and libwebm.lib for project and library name on Windows (instead
355-
# webm and webm.lib).
356-
set_target_properties(webm PROPERTIES PROJECT_LABEL libwebm)
357-
set_target_properties(webm PROPERTIES PREFIX lib)
358-
endif ()
359-
360354
if(ENABLE_SAMPLE_PROGRAMS)
361355
add_executable(mkvparser_sample ${mkvparser_sample_sources})
362356
target_link_libraries(mkvparser_sample LINK_PUBLIC webm)

0 commit comments

Comments
 (0)
Please sign in to comment.