mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-19 13:39:31 +03:00
The CMakeLists.txt will now handle different casin on CMAKE_BUILD_TYPE when matching text.
This commit is contained in:
parent
c83902fb79
commit
f8f7f89fee
1 changed files with 3 additions and 3 deletions
|
@ -102,9 +102,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU")
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT(CMAKE_BUILD_TYPE MATCHES "Release|release|RelWithDebInfo|relwithdebinfo"))
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" build_type)
|
||||
set(mi_basename "mimalloc-${build_type}")
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" LOWERCASE_CMAKE_BUILD_TYPE)
|
||||
if(NOT(LOWERCASE_CMAKE_BUILD_TYPE MATCHES "^(release|relwithdebinfo|minsizerel)$"))
|
||||
set(mi_basename "mimalloc-${LOWERCASE_CMAKE_BUILD_TYPE}")
|
||||
else()
|
||||
if(MI_SECURE MATCHES "ON")
|
||||
set(mi_basename "mimalloc-secure")
|
||||
|
|
Loading…
Add table
Reference in a new issue