Merge branch 'dev' into dev-slice

This commit is contained in:
daan 2021-12-15 08:47:00 -08:00
commit 60ca554413

View File

@ -210,27 +210,29 @@ 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() find_library(MI_LIBATOMIC atomic)
if (MI_LIBATOMIC OR MI_USE_LIBATOMIC)
if (MI_USE_LIBATOMIC)
list(APPEND mi_libraries atomic) list(APPEND mi_libraries atomic)
endif()
endif() 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}")