Change msvc ImportLib for static target to 'capstone_dll.lib'

This is the same as e268f46 changed in the vcxproj file.
This commit is contained in:
learn_more 2015-04-14 15:39:07 +02:00
parent 9668b2641f
commit c85e3c364e

View File

@ -192,6 +192,10 @@ if (CAPSTONE_BUILD_SHARED)
set_property(TARGET capstone-shared PROPERTY OUTPUT_NAME capstone)
set_property(TARGET capstone-shared PROPERTY COMPILE_FLAGS -DCAPSTONE_SHARED)
if(MSVC)
set_target_properties(capstone-shared PROPERTIES IMPORT_SUFFIX _dll.lib)
endif()
if(NOT DEFINED default-target) # honor `capstone-static` for tests first.
set(default-target capstone-shared)
add_definitions(-DCAPSTONE_SHARED)