From 77991a0761d62f9d3f79d778ee962c01b97bdfc8 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Sat, 28 Oct 2023 21:05:42 -0400 Subject: [PATCH] build: fix libuv.a file name for cmake (#4185) This makes cmake more consistent about how to name this file, otherwise sometimes it names it uv.lib and sometimes libuv.a depending on which compiler is selected or if ./configure is used. Refs: https://github.com/libuv/libuv/pull/2085#issuecomment-1735276640 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec2cb9b8df2..72377851b69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -478,7 +478,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "OS390") endif() target_link_libraries(uv_a ${uv_libraries}) set_target_properties(uv_a PROPERTIES OUTPUT_NAME "uv") -if(MSVC) +if(WIN32) set_target_properties(uv_a PROPERTIES PREFIX "lib") endif()