mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 14:09:31 +03:00
cmake: don't change properties of import lib on Windows/MinGW
CMake handles import lib for it automatically, and using `.dll.lib` extension is MSVC-specific hack
This commit is contained in:
parent
26b792d93b
commit
797ca19ba9
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ if(MI_BUILD_SHARED)
|
||||||
install(TARGETS mimalloc EXPORT mimalloc ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
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})
|
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
|
# 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)
|
# 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" )
|
set_property(TARGET mimalloc PROPERTY ARCHIVE_OUTPUT_NAME "${mi_libname}.dll" )
|
||||||
|
|
Loading…
Add table
Reference in a new issue