mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
fix MI_ prefix for libraries
This commit is contained in:
parent
2d9b8aa6b5
commit
b7d33c2c33
1 changed files with 10 additions and 8 deletions
|
@ -210,13 +210,13 @@ endif()
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
list(APPEND mi_libraries psapi shell32 user32 advapi32 bcrypt)
|
list(APPEND mi_libraries psapi shell32 user32 advapi32 bcrypt)
|
||||||
else()
|
else()
|
||||||
find_library(LIBPTHREAD pthread)
|
find_library(MI_LIBPTHREAD pthread)
|
||||||
if (LIBPTHREAD)
|
if (MI_LIBPTHREAD)
|
||||||
list(APPEND mi_libraries ${LIBPTHREAD})
|
list(APPEND mi_libraries ${MI_LIBPTHREAD})
|
||||||
endif()
|
endif()
|
||||||
find_library(LIBRT rt)
|
find_library(MI_LIBRT rt)
|
||||||
if(LIBRT)
|
if(MI_LIBRT)
|
||||||
list(APPEND mi_libraries ${LIBRT})
|
list(APPEND mi_libraries ${MI_LIBRT})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -228,9 +228,11 @@ endif()
|
||||||
# Install and output names
|
# Install and output names
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
set(mi_install_libdir "${CMAKE_INSTALL_LIBDIR}") # for dynamic/shared library and symlinks
|
# dynamic/shared library and symlinks always go to /usr/local/lib equivalent
|
||||||
|
set(mi_install_libdir "${CMAKE_INSTALL_LIBDIR}")
|
||||||
|
|
||||||
# install at top level or use versioned directories for side-by-side installation?
|
# static libraries and object files, includes, and cmake config files
|
||||||
|
# are either installed at top level, or use versioned directories for side-by-side installation (default)
|
||||||
if (MI_INSTALL_TOPLEVEL)
|
if (MI_INSTALL_TOPLEVEL)
|
||||||
set(mi_install_objdir "${CMAKE_INSTALL_LIBDIR}")
|
set(mi_install_objdir "${CMAKE_INSTALL_LIBDIR}")
|
||||||
set(mi_install_incdir "${CMAKE_INSTALL_INCLUDEDIR}")
|
set(mi_install_incdir "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue