From 147d95b6ce3cc3e37ee6aacde720e79e9fa2ab98 Mon Sep 17 00:00:00 2001 From: learn_more Date: Tue, 14 Apr 2015 15:39:07 +0200 Subject: [PATCH] Change msvc ImportLib for static target to 'capstone_dll.lib' This is the same as e268f46 changed in the vcxproj file. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76152af6..bce81f9d 100644 --- a/CMakeLists.txt +++ b/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)