mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-20 14:09:32 +03:00
CMakeLists.txt: fix mi_install_cmakedir & disable adding -none prefix if CMAKE_BUILD_TYPE==None
This commit is contained in:
parent
076f815cec
commit
772d178d78
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ endif()
|
|||
if (MI_INSTALL_TOPLEVEL)
|
||||
set(mi_install_libdir "lib")
|
||||
set(mi_install_incdir "include")
|
||||
set(mi_install_cmakedir "cmake")
|
||||
set(mi_install_cmakedir "share/cmake")
|
||||
else()
|
||||
set(mi_install_libdir "lib/mimalloc-${mi_version}")
|
||||
set(mi_install_incdir "include/mimalloc-${mi_version}")
|
||||
|
@ -224,7 +224,7 @@ else()
|
|||
endif()
|
||||
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LC)
|
||||
if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel)$"))
|
||||
if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel|none)$"))
|
||||
set(mi_basename "${mi_basename}-${CMAKE_BUILD_TYPE_LC}") #append build type (e.g. -debug) if not a release version
|
||||
endif()
|
||||
if(MI_BUILD_SHARED)
|
||||
|
|
Loading…
Add table
Reference in a new issue