Merge pull request #403 from ArcEarth/master

[CMake] Respect CMAKE_INSTALL_PREFIX at install time
This commit is contained in:
Daan 2021-05-21 12:16:17 -07:00 committed by GitHub
commit a732b762cc
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,9 +208,9 @@ endif()
# -----------------------------------------------------------------------------
if (MI_INSTALL_TOPLEVEL)
set(mi_install_dir "${CMAKE_INSTALL_PREFIX}")
set(mi_install_dir "")
else()
set(mi_install_dir "${CMAKE_INSTALL_PREFIX}/lib/mimalloc-${mi_version}")
set(mi_install_dir "lib/mimalloc-${mi_version}")
endif()
if(MI_SECURE)