Fix MSVC build
This commit is contained in:
@@ -1360,7 +1360,12 @@ endif()
|
|||||||
|
|
||||||
# Black magic for generating static archives...
|
# Black magic for generating static archives...
|
||||||
if (BUILD_SHARED_LIBS)
|
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()
|
else()
|
||||||
# Rename the "static" lib to avoid filename clash.
|
# Rename the "static" lib to avoid filename clash.
|
||||||
set_target_properties(unicorn PROPERTIES OUTPUT_NAME "unicorn-static")
|
set_target_properties(unicorn PROPERTIES OUTPUT_NAME "unicorn-static")
|
||||||
|
|||||||
Reference in New Issue
Block a user