From 473546739bea118248c7e56f15853af9c5d25bd4 Mon Sep 17 00:00:00 2001 From: "Ming, Bai" Date: Thu, 19 Aug 2021 03:11:59 -0700 Subject: [PATCH] Fix issue of conflicting target names in Windows (#702) The output file name of the iwasm library should be unique, otherwise some of the output files from two different targets (iwasm and libiwasm) will overwrite each other and produce corrupted output files. Currently Windows debugging is broken due to the corrupted pdb files, and this PR fixes the issue. --- product-mini/platforms/windows/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product-mini/platforms/windows/CMakeLists.txt b/product-mini/platforms/windows/CMakeLists.txt index 377297a3..c03a064e 100644 --- a/product-mini/platforms/windows/CMakeLists.txt +++ b/product-mini/platforms/windows/CMakeLists.txt @@ -124,7 +124,7 @@ add_library (libiwasm SHARED ${WAMR_RUNTIME_LIB_SOURCE}) install (TARGETS libiwasm DESTINATION lib) -set_target_properties (libiwasm PROPERTIES OUTPUT_NAME iwasm) +set_target_properties (libiwasm PROPERTIES OUTPUT_NAME libiwasm) target_link_libraries (libiwasm ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS})