package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
651 B
22 lines
651 B
4 months ago
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 851b3cc9..cc2bc97f 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -3221,13 +3221,16 @@ if(WIN32)
|
||
|
# For compatibility, build the shared library without the "lib" prefix on
|
||
|
# MinGW as well.
|
||
|
#
|
||
|
+ if(BUILD_SHARED_LIBS)
|
||
|
set_target_properties(${LIBRARY_NAME} PROPERTIES
|
||
|
PREFIX ""
|
||
|
OUTPUT_NAME "${LIBRARY_NAME}"
|
||
|
)
|
||
|
+ else()
|
||
|
set_target_properties(${LIBRARY_NAME}_static PROPERTIES
|
||
|
OUTPUT_NAME "${LIBRARY_NAME}"
|
||
|
)
|
||
|
+ endif()
|
||
|
endif()
|
||
|
else(WIN32) # UN*X
|
||
|
if(BUILD_SHARED_LIBS)
|