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

This is the same as e268f46 changed in the vcxproj file.
test2
learn_more 10 years ago committed by Nguyen Anh Quynh
parent 72ee3c9b15
commit 147d95b6ce
  1. 4
      CMakeLists.txt

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

Loading…
Cancel
Save