Fix MSVC build

This commit is contained in:
lazymio 2022-05-02 17:51:03 +02:00
parent 7dfecbcb4a
commit bc056727af
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -1360,7 +1360,12 @@ endif()
# Black magic for generating static archives...
if (BUILD_SHARED_LIBS)
bundle_static_library(unicorn_static unicorn_archive unicorn)
if (MSVC)
# Avoid the import lib built by MVSC clash with our archive.
set_target_properties(unicorn PROPERTIES OUTPUT_NAME "unicorn-import")
endif()
bundle_static_library(unicorn_static unicorn_archive unicorn)
endif()
else()
# Rename the "static" lib to avoid filename clash.
set_target_properties(unicorn PROPERTIES OUTPUT_NAME "unicorn-static")