Fix MSVC build

This commit is contained in:
2022-05-02 17:51:03 +02:00
parent 7dfecbcb4a
commit bc056727af

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")