We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 246b3bc + 797ca19 commit 881d5e3Copy full SHA for 881d5e3
CMakeLists.txt
@@ -584,7 +584,7 @@ if(MI_BUILD_SHARED)
584
install(TARGETS mimalloc EXPORT mimalloc ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
585
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir})
586
587
- if(WIN32)
+ if(WIN32 AND NOT MINGW)
588
# On windows, the import library name for the dll would clash with the static mimalloc.lib library
589
# so we postfix the dll import library with `.dll.lib` (and also the .pdb debug file)
590
set_property(TARGET mimalloc PROPERTY ARCHIVE_OUTPUT_NAME "${mi_libname}.dll" )
0 commit comments