Skip to content

Commit a732b76

Browse files
authored
Merge pull request #403 from ArcEarth/master
[CMake] Respect CMAKE_INSTALL_PREFIX at install time
2 parents 73c3392 + 712e7d3 commit a732b76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ endif()
208208
# -----------------------------------------------------------------------------
209209

210210
if (MI_INSTALL_TOPLEVEL)
211-
set(mi_install_dir "${CMAKE_INSTALL_PREFIX}")
211+
set(mi_install_dir "")
212212
else()
213-
set(mi_install_dir "${CMAKE_INSTALL_PREFIX}/lib/mimalloc-${mi_version}")
213+
set(mi_install_dir "lib/mimalloc-${mi_version}")
214214
endif()
215215

216216
if(MI_SECURE)

0 commit comments

Comments
 (0)