12 lines
624 B
Diff
12 lines
624 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -582,7 +582,7 @@
|
|
install(TARGETS mimalloc EXPORT mimalloc ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir})
|
|
|
|
- if(WIN32)
|
|
+ if(WIN32 AND NOT MINGW)
|
|
# On windows, the import library name for the dll would clash with the static mimalloc.lib library
|
|
# so we postfix the dll import library with `.dll.lib` (and also the .pdb debug file)
|
|
set_property(TARGET mimalloc PROPERTY ARCHIVE_OUTPUT_NAME "${mi_libname}.dll" )
|