Fix MSVC build
This commit is contained in:
parent
7dfecbcb4a
commit
bc056727af
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user