From 9d602ab12654d3adb53f34457390f534eb85f5d6 Mon Sep 17 00:00:00 2001 From: DDoSolitary Date: Sat, 12 Feb 2022 19:47:59 +0800 Subject: [PATCH] fix library names on Cygwin --- CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 660bdb95..813e3d1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,18 +207,13 @@ if (BUILD_MODULE) endif (BUILD_MODULE) if (BUILD_STATIC_LIBS) add_library(libluv_a STATIC src/luv.c) - set_target_properties(libluv_a PROPERTIES PREFIX "") + set_target_properties(libluv_a PROPERTIES OUTPUT_NAME luv) list(APPEND ACTIVE_TARGETS "libluv_a") endif (BUILD_STATIC_LIBS) if (BUILD_SHARED_LIBS) add_library(libluv SHARED src/luv.c) - set_target_properties(libluv PROPERTIES PREFIX "") set_target_properties(libluv - PROPERTIES VERSION ${LUV_VERSION} SOVERSION ${LUV_VERSION_MAJOR}) - # Prevent lib prefix in shared library name - if(WIN32) - set_target_properties(libluv PROPERTIES IMPORT_PREFIX "") - endif(WIN32) + PROPERTIES VERSION ${LUV_VERSION} SOVERSION ${LUV_VERSION_MAJOR} OUTPUT_NAME luv) if(APPLE) set_target_properties(libluv PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")