diff --git a/CMakeLists.txt b/CMakeLists.txt index f6a2dd6..8724afb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,12 +31,6 @@ add_cxx_preproc_definition("__STDC_LIMIT_MACROS") # Set up compiler flags and build properties. include_directories("${LIBWEBM_SRC_DIR}") -if (WIN32) - # Use libwebm and libwebm.lib for project and library name on Windows (instead - # webm and webm.lib). - set_target_properties(webm PROPERTIES PROJECT_LABEL libwebm) - set_target_properties(webm PROPERTIES PREFIX lib) -endif () if (MSVC) add_cxx_flag_if_supported("/W4") @@ -326,6 +320,13 @@ add_library(webm STATIC ${libwebm_common_sources} $ $) +if (WIN32) + # Use libwebm and libwebm.lib for project and library name on Windows (instead + # webm and webm.lib). + set_target_properties(webm PROPERTIES PROJECT_LABEL libwebm) + set_target_properties(webm PROPERTIES PREFIX lib) +endif () + add_executable(mkvparser_sample ${mkvparser_sample_sources}) target_link_libraries(mkvparser_sample LINK_PUBLIC webm)