mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-09 04:48:42 +03:00
allow to compile tests without installing
This commit is contained in:
parent
5dfced26c2
commit
034bae09e4
2 changed files with 17 additions and 3 deletions
|
@ -12,8 +12,10 @@ if (NOT CMAKE_BUILD_TYPE)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT TARGET mimalloc)
|
||||
# Import mimalloc (if installed)
|
||||
find_package(mimalloc 1.0 REQUIRED)
|
||||
endif()
|
||||
|
||||
# Tests
|
||||
add_executable(static-override main-override.c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue